Hi there, not sure if this is a bug or user error. So appreciate any help.
I have a page with a reusable element on it. The reusable element just contains a workflow, which I want to trigger via a custom action. The action for the time being simply writes the value of some custom states on the reusable element to a table.
The workflow for the button click on the page
The reusable element
The workflow on the reusable element to write the values of custom states (set by the page) to the database table. First on page load:
The workflow on the reusable element to write the values of custom states (set by the page) to the database table. Second on trigger of custom action:
- OK. So when I initially load the page, and enter my values into the input boxes, then click on the button, here are the results in the database:
The values of the states that have been set, are missing from the database. My question is why?
The debugger shows the values being appended to the string in the “Create Log” action:
BUT the system logs show the values as missing from the “Create Log” action:
- If I simply click the button again, without changing anything else on the page, here are my results in the database:
- On second click of the button the values of the custom states are passed to the action. Why not on first click?
- Is this expected behaviour?
- Or is this a bug?
Thanks in advance.