I need to validate a process number with 17 digits:
99999.999999/9999-99.
This expression works:
/^[0-9]{5}\.[0-9]{6}\/[0-9]{4}-[0-9]{2}$/
BUT the problem is that user need to add dots, bars and trace manually.
When I try to exclude "\" before these elements, like the example below, I didn't take the same result:
Number:
999.999.999-99.
Validation: /^[0-9]{3}.[0-9]{3}.[0-9]{3}-[0-9]{2}$/
In this example. the user have points e trace autofill.
I know that I put a number more than 3 in the validation formula don't work.
There is a solution to add dots, bars and traces automatically when the user insert the information (in the first example)?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
What version are you using? 2.05+ Build 141229
What template are you using? It's a template especific for my organization, but I imagine that the almost modification are only in design.
Have you tested with the default template? Only now. Are your a genious! In default template, limesurvey didnt't autocomplete like second example of my topic. I'll need to contact my IT area to modify lime template and include this mask, it's out of my control.
Congratulations! Finally I can discovery the cause of my regex don't work like other type of number in my form.