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

If I add a dropdown field can I get it to add a different signature with each selection?

Avatar

Avatar
Level 1
kathieochoa
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
kathieochoa
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
kathieochoa
Level 1

14-02-2018

If I add a dropdown field can I get it to add a different signature with each selection? ex. dropdown list contains: my signature, spouse signature selecting mine will produce my signature and spouse will add his signature to a specified location on the form.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

14-02-2018

Hi kathieochoa,

That is easy enough to do. Add your signature fields (or images) where you want them on the form and set their presence to hidden (or invisible depending on your form structure)

Assuming your listed items in the dropdownlist are: My Signature, Spouse's Signature and Both Signatures.

In the javascript change event for the dropdownlist add this:

if ($.boundItem(xfa.event.newText) == "My Signature") //look in the dropdownlist for this item
{

this.resolveNode("mySignature").presence = "visible"; //show this

this.resolveNode("spouseSignature").presence = "hidden"; //hide this or make invisible using "invisible"

}

else if ($.boundItem(xfa.event.newText) == "Spouse's Signature")
{

this.resolveNode("mySignature").presence = "hidden"; //hide this

this.resolveNode("spouseSignature").presence = "visible"; //show this

}

else if ($.boundItem(xfa.event.newText) == "Both Signatures")  //show both signatures

{

this.resolveNode("mySignature").presence = "visible";

this.resolveNode("spouseSignature").presence = "visible";

}