Hello,
I'm continuing my development of a form containing item list. The case is as follows:
I add an item to the item list and after it is added (upon ending the edition in one item edit mode) I want to automatically add an item that is dependant (dependancy is held in one of the items list fields of the idem being added). However if edition is canceled nothing should happen.
So, what approach would you advise?
I've tried using an external variable to hold the ID of the item that needs to be added, but it didn;t work well. I've tried to use callback, but no luck here either (as callback is triggered while still in the edit mode and what if I cancel the edition?).
The optimum would be if there could be a possibility to bind a form rule to ending the editin of an item in the list, but I guess there is no such possibility. Or am I wrong?
UPDATE: I managed to get on callback the list of dependant item IDs and the main item IDs both in separate attributes. I managed to create actions that I want to perform the desired tasks in a path. But this needs user to click the path button - how to automatically add the new items to the list on closing the edit window?