Copy link to clipboard
Copied
I have an attachment field on a PDF that I need to conditionally require based on another field's input value. Can this be done?
The document is always signed via an embedded widget and is created via an API call that sends in the PDF bytes.
yes this can be done using EchoSign text tags.
I assume the trigger field is a checkbox called cb1 and when checked will show the attachment field.
The tag for the attachment field wil look like this:
{{*nameoffieldhere_es_:signer1:attachment:label("labelhere"):showif(cb1=checked)}}
If you are using Acrobat form fields use the above tag as the name of of the field, but without the {{ }}
Copy link to clipboard
Copied
yes this can be done using EchoSign text tags.
I assume the trigger field is a checkbox called cb1 and when checked will show the attachment field.
The tag for the attachment field wil look like this:
{{*nameoffieldhere_es_:signer1:attachment:label("labelhere"):showif(cb1=checked)}}
If you are using Acrobat form fields use the above tag as the name of of the field, but without the {{ }}
Copy link to clipboard
Copied
Awesome, thank you. Trying this out now! I'll come back and mark this as the answer if it works--I'm betting it will!
Copy link to clipboard
Copied
Hi Kyle, i didn't intend to answer your query using my forum test user!
I was n't quite sure if you need an attachment field at all times and based on a condition make it a required field (that's what the *) in the tag does btw)
or if you simply need a required attchment field based on the condition. My answer above assume the former, so the checkbox will turn on and off the attachment field as a whole, and when it's turned on it's required.
Copy link to clipboard
Copied
This is currently what I need.
If i wanted to conditionally make the field required, but have it always showing would I simply remove the asterisk and change the :showif to something like :requireif? Is there a document that shows the available tag name functions such as :showif?
Thank you for your help!
Copy link to clipboard
Copied
Unfortunatelty there's no such condition. Conditions either hide a field or show it.
So we can't sovle this using a single field.
You need 2 versions of the field, a required field and a non-required field
non-required: {{nameoffieldhere01_es_:signer1:attachment:label("labelhere"):hideif(cb 1=checked)}}
required: {{*nameoffieldhere02_es_:signer1:attachment:label("labelhere"):showif(cb 1=checked)}}
So the non-required version will be shown, until the checkbox has been ticked. when selecting the check box the nonrequired field will hide and the required version will show.
If you browse the support documentation you'll find a link to text tags, butattached a pdf to this post as well.
Copy link to clipboard
Copied
Thanks! This is very helpful.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now