formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.86k stars 1.05k forks source link

[BUG] Client only fields not removed from submission (component instance.path not calculated correctly) #5458

Open llaurentiu opened 7 months ago

llaurentiu commented 7 months ago

formojs versions: latest stable (4.18.0) and lower.

Having:

--> the client only field is not removed from the submission.

Js fiddle: https://jsfiddle.net/fd93k6vr/11/

Technical details: The cleaning submission code relies on the componentInstance.path property - which for this nesting is not calculated correctly.

See code here for this type of nesting, the path contains indexes also for the containers (-> container.parentGrid[0].innerContainer[0].editGrid[0].clientOnlyField)

image

daneformio commented 5 months ago

We have reproduced this and created a ticket for it. Ticket for internal tracking: FIO-7779