Javascript Where If Text Field is Required, it Cannot Equal 0
I have a text field whose required status is based on a selection made in a drop down. What I need to add to the code that I've already got (see below):
if (this.getField("Bedrooms").value=="Points"){event.target.required=true}
else if (this.getField("Bathrooms").value=="Points"){event.target.required=true}
else if (this.getField("Occupancy").value=="Points"){event.target.required=true}
else
{event.target.required=false}
Is that if this field is required it cannot equal 0. The problem is that any other time, it can be 0. I don't doubt that it is doable. I just don't have the knowledge to make it happen... Any help would be appreciated.
