Copy link to clipboard
Hi, everyone. I have a medical form Date and Time field. I'm using a button to insert the current Date and Time using the following script
var f = this.getField("BF_ReportDate");
f.value = util.printd("dd/mm/yyyy", new Date());
var f = this.getField("BF_Time_2");
f.value = util.printd("HH:MM:ss", new Date());
But after Spawned Page field name is changing automatically to "P1.BD.BF_DateofRequest" and "P1.BD.BF_Time_2" and the button not working anymore.
How can I get this workable after spawned the page?
Thanks in Advanced.
Have something to add?