formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

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

Open llaurentiu opened this issue 1 year ago • 1 comments

formojs versions: latest stable (4.18.0) and lower.

Having:

  • an edit grid with an inner container
  • then the inner container has an edit grid inside
  • and we have a client only field in the inner edit grid
  • and we submit/save the form

--> 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

llaurentiu avatar Jan 16 '24 12:01 llaurentiu

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

daneformio avatar Apr 03 '24 13:04 daneformio