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

Changing Name and Caption of the fields Dynamically

Avatar

Avatar
Level 1
pranaym48551345
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
pranaym48551345
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
pranaym48551345
Level 1

18-05-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

69 likes

Total Posts

71 posts

Correct Reply

32 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

69 likes

Total Posts

71 posts

Correct Reply

32 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

18-05-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-3e14850712a151d2... 

Answers (0)