How to restrict the execution of CLOSE action depending upon the flag
I need to restrict execution of CLOSE action depending upon the flag. I have on CLICK event and for that I have set 2 actions:- 1) Refresh section 2) CLOSE
Depending on the flag, I have to restrict the CLOSE action will execute or not. I have tried giving condition for CLOSE action itself but it is not working.I have tried both the ways by giving WHEN rule and by giving expression also.
Can anyone please suggest any other way to resolve this scenario.
***Edited by Moderator Marissa to update Platform Capability tags****
I think the issue is because the flag property used in when rule or expression is set in same button click. We faced similar issue sometimes back. Please try below steps. I assume you don't have an UI control for that flag property in the same section already.
1. Add a UI control (may be check box if it is boolean) for that flag property in the same section where you have the button.
2. Set the Control format to 'Hidden', on the Presentation tab of the Control, to hide the field.
3. Set the When condition to 'Other Property' and use the flag and expression.