Hi,
I have a form where a javascript function executes when a field is changed: so, when a user enters a value into Field 1 or Field2, a js function is called as an Event in the Form, performs a calculation and places the result in Field 3, using the On Change trigger. Works well.
However when I populate the form from a database table or external file, the fields are filled but the js function is not run unless the user changes one of the input fields after loading.
I did try the Not empty trigger but this did not work either.
Is there a way that I can get CF6 to execute the js function when the fields are populated from the database? Preferably a way to run it when triggered by the data being loaded into the field.
Thanks
Tim
I have a form where a javascript function executes when a field is changed: so, when a user enters a value into Field 1 or Field2, a js function is called as an Event in the Form, performs a calculation and places the result in Field 3, using the On Change trigger. Works well.
However when I populate the form from a database table or external file, the fields are filled but the js function is not run unless the user changes one of the input fields after loading.
I did try the Not empty trigger but this did not work either.
Is there a way that I can get CF6 to execute the js function when the fields are populated from the database? Preferably a way to run it when triggered by the data being loaded into the field.
Thanks
Tim