So I am trying to get the value for a hidden field in a form (which will be the basis for some other calculations in the form) based on what is selected from a drop down list. If "signed" is selected from the list, then the value = the value inputted in the "TimeAddedToDate" field. If "unsigned" is selected, then the value = 0.
This way I can correctly make some other calculations on the form.
Any help would be greatly appreciated!!!
This is my failed attempt:
var Time = this.getField("TimeAddedToDate").value;
var Select = this.getField("ToDateOrderStatus").value;
if(Select == "Unsigned")event.value = 0;
else if (Select == "Signed")event.value = Time;
Your scripts looks correct (assuming the field names and the values of the
options are what you used)... So what exactly is not working? Are you
getting any error messages in the console?
On Fri, Dec 7, 2012 at 8:25 AM, freelance_java_n00b <
Thanks for your response!
I went back and deleted that field, created a new field, inputted the exact script from before and it works perfectly. So weird.
Thanks again for your help!