Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OJet 4 Disable Checkboxset After Assigning a Value

ConnorFitzgeraldGWDec 7 2017 — edited Dec 8 2017

Hi. I'm having trouble with assigning a value to a disabled checkbox. The HTML is as follows:

<oj-checkboxset id="checkboxSetId"

                           aria-label="Checkbox"

                           value="[[selected == 'Y' ? ['agree'] : []]]">

     <oj-option id="agreeopt" value="agree" label="agree">

     </oj-option>

</oj-checkboxset>

The 'selected' value is set to 'Y' as a result of an AJAX call. Without disabling the checkbox, it is correctly checked.

The Jet 3.2 equivalent of the code above led to the box being checked and disabled so the value couldn't be changed.

However, in Jet 4 the box is never checked when the disabled="true" attribute is provided on either the oj-checkboxset or oj-option.

Is this intentional? Do I now need to disable the checkbox after load in the JS?

Thanks.

Comments
Post Details
Added on Dec 7 2017
4 comments
344 views