Copy link to clipboard
Copied
Hi all,
I have a form with 14 fields (Weight1, Weight2 etc.) and that if there is no numeric or textual value added to the field, that the checkbox (when selected) enters a default textual value ('EMPTY') to only the empty fields - possible/plausible?.
Thanks!
As Mouse UP event of checkbox use this:
for (var i=1; i<=14; i++)
if(event.target.value != "Off" && this.getField("Weight"+i).value == "")
this.getField("Weight"+i).value = "EMPTY";
Copy link to clipboard
Copied
As Mouse UP event of checkbox use this:
for (var i=1; i<=14; i++)
if(event.target.value != "Off" && this.getField("Weight"+i).value == "")
this.getField("Weight"+i).value = "EMPTY";
Copy link to clipboard
Copied
Thnaks Nesa, thats great 😉