Skip to main content
Known Participant
April 16, 2019
Answered

make multiple text boxes required if check box ticked

  • April 16, 2019
  • 1 reply
  • 1290 views

I am using this script

this.getField("cust Tel No").required = !event.target.isBoxChecked(0);

and it works but when i try and add extra text boxes it doesnt, where am i going wrong

this.getField("cust Tel No").required = !event.target.isBoxChecked(0); &&

this.getField("cust Tel Ar").required = !event.target.isBoxChecked(0);

This topic has been closed for replies.
Correct answer try67

Drop the "&&" at the end of the first line.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 16, 2019

Drop the "&&" at the end of the first line.

Known Participant
April 16, 2019

Hi thanks,

I have 3 radio buttons, when i use the same script on the second radio button it doesn't work, any reason why and on the third radio button i don't want the text boxes to be required so how do i cancel the required?

try67
Community Expert
Community Expert
April 16, 2019

Please describe how you want this to work, exactly.