dcarney | Posts: 27

Making text input required, and enforcing that at least one checkbox is checked based on answer

0 votes

 

I have a document where a home seller is answering questions about the condition of their property. I'm trying to accomplish the following:

- If a seller chooses yes when answering if their property has defects, they need to fill out at least one checkbox describing the type of defect. How can I enforce this? Also, I currently has this as a radiogroup. Will this allow someone to choose multiple options? If not, how would I set this up?

- If a seller chooses yes when answering if their property has defects, how can I enforce that they fill out a text input?

 

Sample text:

 

Are you (Seller) aware of any significant defects/malfunctions in any of the following? {{*esl_optionA:Signer1:Radio:Group("HasDefects"),Value(""),size(10,10),offset(40,-8)}} Yes          

{{*esl_optionB:Signer1:Radio:Group("HasDefects"),Value(""),size(10,10),offset(40,-8)}}  No

 

If yes, check appropriate space(s) below.  (Question 1: How can I enforce that if HasDefects option A is chosen that at least one of the following checkboxes are required? Note that someone could fill out more than one checkbox)

 

{{esl_optionA:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Interior

{{esl_optionB:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Walls

{{esl_optionC:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}}Ceilings 

{{esl_optionD:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Floors

{{esl_optionE:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Exterior Walls 

{{esl_optionF:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Insulation

{{esl_optionG:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Roof(s)

{{esl_optionH:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Windows

{{esl_optionI:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Doors 

{{esl_optionJ:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} FoundationSlab(s)

{{esl_optionK:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Driveways

{{esl_optionL:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Sidewalks

{{esl_optionM:Signer1:Radio:Group("DefectType"),Value(""),size(10,10),offset(40,-8)}} Walls/Fences

 

If any of the above is checked, explain.

{{esl:Signer1:textfield:size(40,15),Maxlen(200)}}

(Question 2: How can I make this text input required if the HasDefects Option A is chosen?)

 

 


Duo_Liang | Posts: 3776

Reply to: Making text input required, and enforcing that at least one checkbox is checked based on answer

0 votes

Hi Dan,

 

This is so called Conditional Field in OneSpan Sign. You can refer to below video tutorial for a quick demonstration:

https://www.onespan.com/resources/video-how-use-conditional-fields-onespan-sign

However, conditional field is not yet supported by Text Tags. Are you implementing an integrated workflow (via API/SDK), or an ad-hoc use case?

-If the former, I have a blog series about integration with conditional fields (part1, part2).

-If the latter, you can consider to use Layout or Template to apply signatures and fields related to the conditions. (you can still use text tags to apply other signatures and field irrelevant to the conditions).

 

Duo


dcarney | Posts: 27

Reply to: Making text input required, and enforcing that at least one checkbox is checked based on answer

0 votes

This is great. Long term I think we are going to use the API to create the documents.

In the short term we have signature tags, texttags inside of microsoft word documents which act as the placeholders.

How can I create a layout? I haven't been able to find how to do this.


With a layout, can I set the placeholder locations for signatures and fields? Where if I upload a document and use the layout, the signatures and fields will stay in the same spot?


dcarney | Posts: 27

Reply to: Making text input required, and enforcing that at least one checkbox is checked based on answer

0 votes

I found the page for creating layouts


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off