UI rule to show message for only one specific button
Need to write a rule for one specific action (APPROVE button) action button
Requirement : If Project having open associated issue and user click APPROVE button to close the project , It will redirect to same page and pop up one message to close the open issue.
I have created a field which will store "abc" as message in APPROVE Button path and in UI Rule (On Page Load ) i have given the condition that filed should store "abc" message . in other 4 action button i am removing "abc" message using command , so Popup message is not appearing for other 4 buttons as Rule condition is not satisfied.
Rule is working fine for all action buttons but problem is that when user click approve button for project having open issue it is redirect same page with pop up message but after whenever the page is refresh or click save button that message is also populating because rule is set on On page load and field have "abc" message. both the condition is satisfying in Save button and when page is refreshed.
My query is how to clear the message in the filed on Decision step, so that pop up message will not populate on Save button and on Refresh the page (i.e on page load).
1, Use workflow commands to set the flag of 'abc' when there are open issues.
2, clear the flag with 'Apply Before Save' SQL Rule
Still there will be message popup when page is refreshed, but I think it's acceptable.