If box checked then (this value) otherwise let me enter custom value
I have been searching all morning and haven't been able to properly execute anything I have found to help with my problem!
- On my form, I have two text boxes: "Start Time" and "End Time".
- I also have a checkbox for "All Day Access".
- Basically, if you check the box for "All Day Access", I want "Start Time" to autofill to "8:00 AM" and "End Time" to autofill to "5:00 PM".
I was able to get that fine with the calculation scripts:
event.value=this.getField("Or All Day Access").value=="Off"?"":"5:00PM";
(and separately, in the calculation Script for "Start Time" field):
event.value=this.getField("Or All Day Access").value=="Off"?"":"8:00AM";
However, when the "All Day Access" box is unchecked, it won't let me enter custom text into the Start and End Time fields.
I know this has got to be an easy solution, I just can't find it!
