Skip to main content
Known Participant
April 16, 2019
Answered

make multiple text boxes required if check box ticked

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
April 16, 2019

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

12 replies

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

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

Translate
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?

Translate
try67
Community Expert
Community Expert
April 16, 2019

Please describe how you want this to work, exactly.

Translate