nareshishere

Is there any way to design input for group of numbers together say example SSN

0 votes

Hi ,

Signer has to input group of numbers together say SSN . How we design that , is there any specific input type available for this ?


Reply to: Is there any way to design input for group of numbers together say example SSN

0 votes

Hi there,

 

If you want to validate the input according to the format of SSN, you can use the Field Validator feature, guide here.

This feature allows you to use a regular expression to validate the input, like below:

"validation": { "required": true, "errorMessage": "Please enter a valid SSN.", "pattern": "^(\\d{3}-?\\d{2}-?\\d{4}|XXX-XX-XXXX)$" "maxLength": 11, "minLength": 9, }

On top of that, if you want to retrieve the user's input value and check against the online validation service, you could:

(1)disable the auto-completion

(2)use the field value retrieval API to get the input value

(3)validation the value

(4)according to the result, programmatically complete the package or delete the signed documents and prompt for another try.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Is there any way to design input for group of numbers together say example SSN

0 votes

Hi Duo ,

We have a requirement like SSN should be given by signer . As per our design signer should input each number in each small box.

I am asking in UI how we can design this , meaning do we need to create 9 text input Box to input SSN each number in each box ??

 

 


Reply to: Is there any way to design input for group of numbers together say example SSN

0 votes

In that case, yes, you need to create 9 input fields, and each of them should be applied a validator limits the length to 1.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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