bugfix/FOUR-28985 Submit action is not working when a new Inbox rule is created
#8705
+117
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.







Issue & Reproduction Steps
Submit actionis not working when anew Inbox ruleis createdSolution
submit button listener
How to Test
Create a simple process (start event - task - task - end event)
Create a simple screen
Add a line input control
Add a submit button
Assign this screen in both tasks
Run a Case
Fill fields
Press submit button
Run other Case
Press Create rule button when screen is displaying
Check Save and reuse filled data field
Add a date in the deactivation date field
Press Next button
Check Submit after filling field
Select a submit button on the screen
Related Tickets & Packages
https://processmaker.atlassian.net/browse/FOUR-28985
Note
Medium Risk
Touches cross-window iframe event handling and adds DOM click interception, which can be brittle (cross-origin, timing) and may affect submit behavior across embedded task previews.
Overview
Fixes cases where creating a new Inbox rule caused the Submit action to emit unusable data by adding a fallback path that captures submit-button metadata directly from the embedded task preview iframe.
InboxRuleFillData.vuenow tracks the last clicked submit button (name/label/value), emits that data whenformSubmitevents arrive without valid button info, and hooks an iframe click listener aftertaskReadyto populate this fallback (with a guarded cross-origin warning).Written by Cursor Bugbot for commit f19c034. This will update automatically on new commits. Configure here.