Trigger database update by ReusableA based on value in ReusableB

I have a page with two Reusable Elements; Reusable Element A and Reusable Element B. Both the page and the reusable elements have their ‘Type of Content’ set to the same ‘data type’, in this case booking.

When a button is clicked on the page, a particular booking is sent to both reusable elements. Reusable element B has an input field which displays the booking’s first name. When a button in reusable element A is clicked, it toggles the Bookings ‘data field’, “Save Mode”, to yes. Reusable element B has a workflow that runs whenever reusable element B’s Booking’s Save Mode is Yes. This workflow updates the bookings first name to reusable elements B’s input field’s value.

Here is an easy example: (removed example app since problem has been solved)

It works fine in my test example, but doesn’t seem to work in my actual app. The only difference I could spot was that the test example only updates one ‘data field’, whereas my actual app has to update multiple ‘data fields’ (something like 15). It worked after going back to my actual app and having the workflow update only one ‘data field’, so I suspect it has something to do with how many ‘data fields’ are being updated. I’ve tried adding 5000 ms pauses and custom workflows but nothing seems to resolve my issue.

Any ideas how I could get this to work while also updating multiple ‘data fields’? Please let me know if there’s anything I can clarify.

Ok, figured out what the problem was.

The data field changes relied upon the value of input fields in reusable element B. One of the input fields did not have a value and that prevented the entire workflow from running. Not the behavior I expected, but I’m just happy to have it working.

This topic was automatically closed after 70 days. New replies are no longer allowed.