Skip to main content
vigneshs53970460
Known Participant
October 5, 2016
Question

Making checkbox not as a readonly

  • October 5, 2016
  • 2 replies
  • 348 views

Hi

I am having three checkboxes (Checkbox1, Checkbox2 & Checkbox3). By default the Checkbox3 should be readonly. If Checkbox1&2 got checked the checkbox3 should not be a readonly checkbox. If anyone of the (checkbox1&2) not checked, the checkbox3 should stay as readonly box. Can anyone help with this using javascript.

This topic has been closed for replies.

2 replies

Inspiring
October 6, 2016

var allChecked = this.getField("Checkbox1").isBoxChecked(0) == true && this.getField("Checkbox2").isBoxChecked(0) == true

if (allChecked) this.getField("Checkbox3").readonly = false

else this.getField("Checkbox3").readonly = true

vigneshs53970460
Known Participant
October 5, 2016

If the above question is not clear. Kindly let me know.