Expand my Community achievements bar.

SOLVED

How do I make a date field mandatory if you select No in the field before?

Avatar

Level 1

I am very new at this program, in fact this is my first form.  I am stuck on how to make the date field become mandatory once you select No to the radio buttons before (options are yes or no).

Any help would be greatly appreciated.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can write in the Click/ Exit event of the Radio Button..

Language: Java Script

DateField1.mandatory = "error"; // This line makes the Date field mandaotory.

DateField1.mandatory = "disabled"; // This line will Remove the mandaotory check.

Replace DateField1 with your control's name..

Thanks

Srini

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

You can write in the Click/ Exit event of the Radio Button..

Language: Java Script

DateField1.mandatory = "error"; // This line makes the Date field mandaotory.

DateField1.mandatory = "disabled"; // This line will Remove the mandaotory check.

Replace DateField1 with your control's name..

Thanks

Srini