I have a control in the UI with custom read-only conditions that I've created a when rule for. This control is in a section that is included in a grid. The grid rows are cofigured to use "Click to edit".
The problem is if my custom read-only conditions are not met then this control always shows as editable even when the row is read-only. I found an out of the box when rule pxIsEditable that states it will "Return true when auto generated UI Section data is editable" but it has no effect.
How do I check in a when rule if the UI is currently in read-only mode?
Thank you for the suggestion. I tried implementing this solution and also checking the box to pass parameter page into the included section and setting the included section to use "Standard" parameters but couldn't get it to work. It still showed always editable. This was all in private checkouts if that makes a difference.
Posted: 2 years ago
Posted: 2 Apr 2019 22:29 EDT
Sreepriya Rao Gona (Sreepriya)
Senior Technical Solutions Engineer
But this didn't fully satisfy my needs because the same section is also available for input in a different assignment outside of the grid and I couldn't get it working for both scenarios. I suspect checking param.SectionReadOnly == -1 might work, assuming the OOTB when rule pxIsEditable actually works.
The best solution for my needs was to duplicate the field in the section rule with visibility conditions using my existing when rule to show the normal one with "Auto" as the Edit Option or another that is always read-only.