Acrobat Button Not Working After Spawn Page

New Here ,
Mar 05, 2021 Mar 05, 2021

Copy link to clipboard

Copied

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

 

For Date

var f = this.getField("BF_ReportDate");
f.value = util.printd("dd/mm/yyyy", new Date());

For Time

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.

 

TOPICS
JavaScript, PDF forms

Views

9

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation