These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Year digit is shown in the different places in the form

Mesut
Registered: Apr 20 2009
Posts: 8

Hello,

I am using Adobe LiveCycle Designer 8.0. My form has a couple of text fields which display year digit as 2009 on the different places in the form. Every year these year digit text fields should be changed to new year digit and it is risk that one of these fields can be forgotten to change.

To make risk-free form, I want to create a variable or a field which will be used in every year digit text field. So I need to change only this field or variable at the end of every year. How can I do this? Besides that there are some text with year digit in the textfield. As Example "panaroma from 2009". Here will come a new variable or a field. "Panaroma from {year digit}".

Thanks in advance
Mesut

My Product Information:
LiveCycle Designer, Windows
Tech264
Registered: Apr 4 2008
Posts: 111
You can use this Javascript code in the *Form:Ready event


form1.#subform[0].DateTimeField1::ready:form - (JavaScript, client)

this.rawValue = util.printd("yyyy", new Date());




I also attached a sample for you in case this is what you need.

https://share.acrobat.com/adc/adc.do?app=cpdf
Mesut
Registered: Apr 20 2009
Posts: 8
Hi Tech264,

Thank you for your response.

I cannot open the link which you attached here.

Regards,
Mesut






Tech264 wrote:
You can use this Javascript code in the *Form:Ready eventform1.#subform[0].DateTimeField1::ready:form - (JavaScript, client)

this.rawValue = util.printd("yyyy", new Date());




I also attached a sample for you in case this is what you need.

https://share.acrobat.com/adc/adc.do?app=cpdf
Tech264
Registered: Apr 4 2008
Posts: 111
My apologies let me try this again for you.

https://share.acrobat.com/adc/document.do?docid=637d617c-f9bc-4ce4-8513-8d119f5d14ed