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

Field caption based on variable from drop-down list

Avatar

Avatar
Validate 1
Level 2
lewiso69254278
Level 2

Likes

4 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
lewiso69254278
Level 2

Likes

4 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
lewiso69254278
Level 2

25-04-2019

Hello,

I am attempting to code a concatenation string with the rawValue result from a drop-down field and insert the string into the caption of another field. Is there a way to have the caption of a signature field populate dynamically based on the value from a drop-down list along with static text, so, a concatenated string which has static text, a dynamic piece pulled from a drop-down list, and, additional static text? Can a field have a dynamic caption?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

25-04-2019

Hi,

this is not that complicated. Just add a script in the exit event of the dropdown to update the fields caption:

var oField = xfa.resolveNode("form1.#subform.SignatureField1"), // reference the signature field

    cValue = this.rawValue; // the current selection of the drop down

oField.caption.value.oneOfChild.value = "You've selected " + cValue; // modify the signatue fields caption