Field Character Limitations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Field Character Limitations

Oscar
Hi all,

Would there be an Xpath formula or configuration that can be enabled to only allow a certain number of characters?

For example, I have a Zip field and I am trying to do 2 validations:
  1.   Only numeric characters allowed
  2.   Maximum length of 5 numeric characters (I am already utilizing the forumula string-length()=5)
At this point, I have validations set in place to check this, but the user can enter other characters and any number of numeric characters as it only activates after the user leaves the active field. I would like the form to do not accept input after the 5th numeric character or other characters at the time of input.


Thank you!

Oscar

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/24b631fb-7787-4435-9ca7-f103092fdee1o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Field Character Limitations

Jarosław Kowalewski
Hi,
The value is changed after you leave the field. 
If you need it 'live' you have to edit source code...

//Jarek

czw., 9 lip 2020 o 19:23 Oscar <[hidden email]> napisał(a):
Hi all,

Would there be an Xpath formula or configuration that can be enabled to only allow a certain number of characters?

For example, I have a Zip field and I am trying to do 2 validations:
  1.   Only numeric characters allowed
  2.   Maximum length of 5 numeric characters (I am already utilizing the forumula string-length()=5)
At this point, I have validations set in place to check this, but the user can enter other characters and any number of numeric characters as it only activates after the user leaves the active field. I would like the form to do not accept input after the 5th numeric character or other characters at the time of input.


Thank you!

Oscar

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/24b631fb-7787-4435-9ca7-f103092fdee1o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcUJLhHrMYLAC841mEi6EWBNA51TAqpqPAkOdLuukG2bnQ%40mail.gmail.com.