dcarney | Posts: 27

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
Duo_Liang | Posts: 3776

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


dcarney | Posts: 27

Reply to: Field Setting to make input required

0 votes

Thank you!


dcarney | Posts: 27

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


Duo_Liang | Posts: 3776

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


dcarney | Posts: 27

Reply to: Field Setting to make input required

0 votes

That was it! Thank you!


AlexJuvion | Posts: 12

Reply to: Field Setting to make input required

0 votes

Great advice on setting fields as required! For those who are also working on academic writing, an essay editing service UK can be a great resource to refine and polish your essays, ensuring they are professionally presented and error-free.


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