Copy link to clipboard
Copied
Hello,
I'd like to apply the default values in a form field only if another field has been filled (almost sounds like a tongue twister)
For example, if I have a form with several rows of Date, Description, Price and the Description nearly always needs to be exactly the same I'd like it so when I add a date, the description is automatically filled with the default values, but otherwise if there is not date it appears blank unless manually filled.
Is there any way to accomplish that, perhaps using custom format?
Copy link to clipboard
Copied
As validation script of "Date" field you can use something like this:
if(event.value == "")
this.getField("Description").value = "";
else this.getField("Description").value = "Description goes here";
Change "Description" field name if neccessary.
Copy link to clipboard
Copied
As validation script of "Date" field you can use something like this:
if(event.value == "")
this.getField("Description").value = "";
else this.getField("Description").value = "Description goes here";
Change "Description" field name if neccessary.
Copy link to clipboard
Copied
Thank you Nesa, worked perfectly!

