Hello,
I have a form which has several checkboxes. A couple of them requires a date field to be entered in a box next to it. If the user checks the box which has a date field box next to it, I want the form to do the following:
1. Let the user know that they have to enter/pick a date for that box. The JavaScript I entered is below.
2. Stop the user from sending the form via email, printing the form and saving the form if the date is not entered in the box.
I entered the below JavaScript in the click event of the checkbox. I found it on the internet and it doesn't seem to work. FYI - I changed the value of the date field boxes to "user optional" and then I changed it to "user required" and it still does not work like I want it. Can anyone help?
if(this.rawValue == 1)
{
this.parent.warrant.mandatory = "error";
}
else
{
this.parent.warrant.mandatory = "disabled"}
Thank you.