In LiveCycle I have created a dynamic form. I am attempting to display the file properties version or the custom properties to populate a footer field so i can make edits on the properties page and automatically update the form to reduce long term maintenance issues. I added the fields as Text and as Text Field with Value properties as a read only calculate value type.
I set up a form JavaScript initialize section
try {
event.target.info.Title = this.desc.title.value;
event.target.info.Author = this.desc.creator.value;
event.target.info.Subject = this.desc.description.value;
event.target.info.CreationDate = this.desc.created.value;
event.target.info.ModDate = this.desc.issued.value;
event.target.info.Ver = this.desc.Ver.value;
event.target.info.Version = this.desc.Version.value;
} catch (e) {}
I have tried Using the below syntax in both the field initialize and calculate sections.
Custom Property
AFFM2519.#pageSet[0].Page1.txtFooter.rawValue=event.target.info.ver
AFFM2519.#pageSet[0].Page2 toN.txtFooter.rawValue=event.target.info.ver
Built-In Property
AFFM2519.#pageSet[0].Page1.txtFooter.rawValue=event.target.info.Version
AFFM2519.#pageSet[0].Page2 toN.txtFooter.rawValue=event.target.info.Version
I thought this would be relatively easy but so far that hasn't been the case. So I'm Stumped. Any assistance would be greatly appreciated.