How to disable fields based on checkbox? | Community
Skip to main content
vigiaemnewbie
Level 2
April 29, 2019
Solved

How to disable fields based on checkbox?

  • April 29, 2019
  • 1 reply
  • 5696 views

I need to disable some fields based on the checkbox. If the checkbox is checked, I need to disable some fields, not hide them. When the checkbox is selected the fields need to be grayed out and not authorable.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peter_Puzanovs

Hi Vigia,

Yes, it's totally possible, please have a look at[0][1].

Be careful, through and explain to your client that there is 0% guarantee on next AEM Release the component you are using will still work and this will increase maintenance burden on your project.

Would be perfect if Adobe did provide us a set "stable" API's to control behaviour for Granite UI elements and we did not have to mess with Jquery selectors and setters.

[0] How to make the textfield readonly in Touch UI

[1] cq5 - Conditional show / hide of fields in AEM 6 dialogs - Stack Overflow

Regards,

Peter

1 reply

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
April 29, 2019

Hi Vigia,

Yes, it's totally possible, please have a look at[0][1].

Be careful, through and explain to your client that there is 0% guarantee on next AEM Release the component you are using will still work and this will increase maintenance burden on your project.

Would be perfect if Adobe did provide us a set "stable" API's to control behaviour for Granite UI elements and we did not have to mess with Jquery selectors and setters.

[0] How to make the textfield readonly in Touch UI

[1] cq5 - Conditional show / hide of fields in AEM 6 dialogs - Stack Overflow

Regards,

Peter