Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Changing Name and Caption of the fields Dynamically

pranaym48551345
Level 2
Level 2

Hi All,

I am trying to implement a code to dynamically changes the caption and the name of the field based on the event, but it seems to be working for the caption but not for the name.

 

Caption : this.caption.value.text.value = "Text" --------------Working

Name: this.name.value.text.value = "fldName" -------------- Not Working

 

Can someone please let me know if the syntax is correct or if i am doing something wrong.

 

Thanks
Pranay

1 Accepted Solution
PulkitJain
Correct answer by
Employee
Employee

@pranaym48551345 

Can you try resolveNode [0] to see if that works for you.

this.rawValue = xfa.resolveNode(fieldname.rawValue);

Just wondering, what could be the use-case when you try to change the name of a field. Dynamically changing the caption value is possible either way.

 

[0] - https://help.adobe.com/en_US/livecycle/11.0/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d2... 

View solution in original post

1 Reply
PulkitJain
Correct answer by
Employee
Employee

@pranaym48551345 

Can you try resolveNode [0] to see if that works for you.

this.rawValue = xfa.resolveNode(fieldname.rawValue);

Just wondering, what could be the use-case when you try to change the name of a field. Dynamically changing the caption value is possible either way.

 

[0] - https://help.adobe.com/en_US/livecycle/11.0/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d2... 

View solution in original post