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
Bedrock Mission!

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?

kathieochoa
Level 1
Level 1

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.

1 Reply
MinusZero
Level 7
Level 7

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";

}