Expand my Community achievements bar.

SOLVED

Changing Name and Caption of the fields Dynamically

Avatar

Level 4

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

Avatar

Correct answer by
Employee Advisor

@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

Avatar

Correct answer by
Employee Advisor

@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...