dcarney

Field Setting to make input required

0 votes

Hi there. I'm trying to make a textfield required. I see that I can do this when I'm about to send a transaction (see screenshot).

Is there a parameter I can include in the textfield in my document so that this field is already set to required?

When I looked at the texttag parameters I do not see one: https://community.onespan.com/documentation/onespan-sign/guides/feature-guides/developer/text-tag-extraction

I'm using a simple textfield for testing.

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

 

I would expect that there should be some kind of parameter like this

 

{{esl:Signer1:textfield:size(40,15),Maxlen(3),required(true)}}

 


Approved Answer

Reply to: Field Setting to make input required

0 votes

Hi Dan,

 

Thanks for your post!

The third character of the text tags can be used to indicate if the field is required. There are two available options, question mark (?) or an asterisk (*). An asterisk indicates that an Input Field is required. A question mark indicates that an Input Field is optional. See below:
{{esl*:Signer1:textfield:size(40,15),Maxlen(3)}}

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Field Setting to make input required

0 votes

Thank you!


Reply to: Field Setting to make input required

0 votes

Hi Duo,


We are using Salesforce to generate the transaction, when i added in the * to the tag, I received this error. It works without the *. 

13:22:39:620 FATAL_ERROR CongaDocument.CongaDocumentException: {"messageKey":"error.validation.texttag.missingRequiredInformation","parameters":{"tag":"{{esl*:marketexpert:textfield:offset(-70,-10),size(75,20)}}"},"message":"{{esl*:marketexpert:textfield:offset(-70,-10),size(75,20)}}: Missing Role Name and/or Field Type.","code":400,"name":"Validation Error"}

 

Any sense on what could be causing this?

 

Thanks


Reply to: Field Setting to make input required

0 votes

HI Dan,

 

Could you try {{*esl:marketexpert:textfield:offset(-70,-10),size(75,20)}}? (* before esl)

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Field Setting to make input required

0 votes

That was it! Thank you!


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