Changing Name and Caption of the fields Dynamically | Community
Skip to main content
pranaym48551345
Level 3
May 18, 2021
Solved

Changing Name and Caption of the fields Dynamically

  • May 18, 2021
  • 1 reply
  • 914 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pulkit_Jain_

@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-3e14850712a151d270d-7fd3.2.html 

1 reply

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
May 18, 2021

@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-3e14850712a151d270d-7fd3.2.html