Question

Buttons and Icons not getting set as Read-Only or getting hidden using pxIsEditable

I have a requirement where I need to make all the fields of the embedded sections as read-only. I am using the "read only (always)" option in the presentation tab which makes all the fields set to auto as read only other than icons/buttons. For buttons/icons I am using OOTB when rule "pxIsEditable" which works fine except in one of the section which has repeating dynamic layout. The when rule works for the first instance of the repeating dynamic layout but not for the subsequent ones. Also it doesn't works on icons/buttons which are in a table set to "click row to edit"

Correct Answer
November 26, 2019 - 7:16am

This is a known limitation. Instead of 'pxIsEditable' when condition, you can try "!$input-Enabled".
 

Comments

Keep up to date on this post and subscribe to comments

November 25, 2019 - 9:30am

Hi Piyush,

There is no "Read-only" on a button. A readOnly attribute can be set on controls that can be edited, like text input , radio buttons, checkboxes.

Do you want to prevent the click action on the button ? You may need to "disable" the control in that case.

 

November 30, 2019 - 12:11am
Response to Krithiga_GCS

I know that. The issue is that pxIsEditable not working for pagelist's button/icon.

Pega
November 25, 2019 - 9:38am

Pega
November 26, 2019 - 7:16am

This is a known limitation. Instead of 'pxIsEditable' when condition, you can try "!$input-Enabled".