Copy link to clipboard
Copied
When i open my form it resets to current date.
I want people to be able to choose current date or manual date or fix the date after saving.
I have the following code, but that doesn't seem to work as planned. When not choosing the checkbox the textfield will be empty.
if(this.getField("chkDateSign").valueAsString != "Off")
this.getField("Dato2_af_date").value = util.printd("dd.mm.yyyy", new Date());
else
event.value = "";
Copy link to clipboard
Copied
Replace the last line with:
this.getField("Dato2_af_date").value = "";
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more