Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Check box is not greying out

Avatar

Level 8

Hello

I have a sub form with 1 text field, 1 drop-dow and 2 check boxes. My requirement is,

Depending on the data entry or depending the selection of drop-down list box entry, i need to either greyed out (filling grey color) the check box w/ "readOnly" OR leave as is (white, open, editable)

I tried with the below 2 JS on CHANGE event of text field, but, not working!

 

xfa.resolveNode("VISITOR.Page2.BankInfo.DebitCheckBox.ui.#textEdit.border.fill.color").value ="192,192,192"; 

xfa.resolveNode("VISITOR.Page2.BankInfo.DebitCheckBox.ui.checkButton.border.edge.color").value = "192,192,192";

Pls. let me know how to fill the grey colr w/ "readOnly" for a check box depending on the neighbour field's data entry (i guess, i am not prefer to write any JS on these check box's object level, bcz, user want to see INSTANT greyiong out of check box as soon as user enters the data on the text field or selects 2nd entry of drop-down, if its INSTANT greying out, then am fine for any solution)

 

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Have a look at the script in this example: http://assure.ly/kp60nk.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

Have a look at the script in this example: http://assure.ly/kp60nk.

Hope that helps,

Niall

Avatar

Level 8

As usual its awesome from Niall

Thank you