UI controls and read-only conditions
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?

I was able to get it close to working with the condition
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.