Hello community!
I'm facing a challenge for which i don't see any solutions, maybe You will be able to find it.
Use case:
User registers new form (parent), to that form, he needs to register additional forms (children).
It's 2 level tree childrens are leafs, they can't be parents.
On those children forms, there are validation rules, which depends on data from the parent form, and a path [Validate] which checks for required fields.
To make sure that children forms are filled properly - when I'm moving the parent form to further steps I'm invoking that [Validate] path on all childrens to make sure, that data is filled correclty.
It works almost perfectly, but there is an edge case.
When user registers parent form, then children forms and moves parent to further steps - no problems.
When user registers parent form, then children forms, and edits field on parent form which is used to validate children forms - validation rule passes even when it shouldn't.
From what I've read here* it seems that 'On path' automations are executed before form values are saved into the database.
So I'm executing that [Validate] path before data is updated with new value. I can't really move it to 'On entry' of next step, because the next step might be dynamic - I'm using 'Previous step' configuration path target.
Any ideas what could i try here? :)
* https://community.webcon.com/posts/post/pending-in-transaction-vs-pending-after-transaction/347/3