Copy link to clipboard
Copied
New to making adobe pages and could use assistance on what I assume is a beginner question.
I would like to know if possible and if so how:
I would like to have a field auto fill with the time when a check box is filled
Thanks in advance
R
Copy link to clipboard
Copied
Let's say field name is "Time", you can use this as Mouse Up action of checkbox, change "HH:MM" to the time format you want:
var time = util.printd("HH:MM", new Date());
this.getField("Time").value = (event.target.value == "Off") ? "" : time;