This topic is locked
[SOLVED]

 Problem with Validate As

1/12/2021 12:12:15 AM
PHPRunner General questions
A
Andreas G. author

Problem with Validate As

I need some help, please
In a text field of length 20, only a-z, A-Z and spaces should be allowed.
I can't do it despite the instructions.

(https://xlinesoft.com/phprunner/docs/validation_types.htm)
What do I have to enter in Regexp: and what should the JS file look like.

What or must something else be set in OnPageLoad?
I sit here all night and don't understand.

The example with the IP address did not help me.
Thanks for your help

Andy

woodey2002 1/12/2021

If you use the regex as described in the link you posted, I don't think there will be an external JS file.
Follow the instructions https://xlinesoft.com/phprunner/docs/validation_types.htm
Try pasting this, [a-z A-Z]{0,20}
Cheers,

J

A
Andreas G. author 1/12/2021

Thanks for the help though:

I tried that and only a, z or a, Z is allowed.

I can only enter the letters a or z, A or Z with it

This means that only 1 letter is possible.

Either a A or z Z
Addendum!
I uploaded the project from scratch and it works
Happy
thanks