Hi Bob, again Validation ...🙂
I found its not possible to translate the words you use exactly.
International phone numbers, digits, numbers - couldn´t be translated by the best tools ...
...ä,ü,ö does not work and /+ not in phone numbers.
Do you maybe know where to find a list of the chars allowed in your fields, I mean exactly the chars?
And isn´t it common use to have a field not required but if its filled out - only a telephone number?
At least code like htmlspecialchars () isn´t anywhere? To validate against bad code I have to use the custom validation, is that right? And the Joomla White or Blacklist in the Configuration doesn´t work for the chronoforms either?
Thank you for your help, Dan
I found its not possible to translate the words you use exactly.
International phone numbers, digits, numbers - couldn´t be translated by the best tools ...
...ä,ü,ö does not work and /+ not in phone numbers.
Do you maybe know where to find a list of the chars allowed in your fields, I mean exactly the chars?
And isn´t it common use to have a field not required but if its filled out - only a telephone number?
At least code like htmlspecialchars () isn´t anywhere? To validate against bad code I have to use the custom validation, is that right? And the Joomla White or Blacklist in the Configuration doesn´t work for the chronoforms either?
Thank you for your help, Dan
Hi Remotec,
You are posting in the ChronoForms v4 forum so I assume that you are using CFv4 (the answer for CFv3 is different).
ChronoForms v4 uses the MooTools Floor FormCheck library for validation. The document are here.
FormCheck uses Regular Expressions for the validations. There is a list below. Note that you can create Custom Validations, or over-ride the Regexs in the FormCheck Options*.
[list]{required:/[^.*]/,
alpha:/^[a-z ._-]+$/i,
alphanum:/^[a-z0-9 ._-]+$/i,
digit:/^[-+]?[0-9]+$/,
nodigit:/^[^0-9]+$/,
number:/^[-+]?\d*\.?\d+$/,
email:/^([a-zA-Z0-9_\.\-\+%])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
image:/.(jpg|jpeg|png|gif|bmp)$/i,
phone:/^\+{0,1}[0-9 \(\)\.\-]+$/,
phone_inter:/^\+{0,1}[0-9 \(\)\.\-]+$/,
url:/^(http|https|ftp)\:\/\/[a-z0-9\-\.]+\.[a-z]{2,3}(:[a-z0-9]*)?\/?([a-z0-9\-\._\?\,\'\/\\\+&%\$#\=~])*$/i}} [/list]
Bob
* If you get my Show HTML [GH] action it will allow you to enter FormCheck options into a configuration box. The standard action doesn't allow this.
You are posting in the ChronoForms v4 forum so I assume that you are using CFv4 (the answer for CFv3 is different).
ChronoForms v4 uses the MooTools Floor FormCheck library for validation. The document are here.
FormCheck uses Regular Expressions for the validations. There is a list below. Note that you can create Custom Validations, or over-ride the Regexs in the FormCheck Options*.
[list]
Bob
* If you get my Show HTML [GH] action it will allow you to enter FormCheck options into a configuration box. The standard action doesn't allow this.
Hi Bob,
I hired an expert to write the code, but I even do not know where to give the php code in to simply strip "bad code" - I do not need an loop behind, the code should only be stripped, then submitted without any error message.
2. Auto Server side validation simply does not work.
1. I checked no validation fields. I sent the form empty, it works fine. The captcha works fine.
2. I changed the setting to one field to be validated agains alphanumeric
3. It would not work with alphas, digits, empty...
4. See the screenshot attached.
Thanks a lot, Dan
I hired an expert to write the code, but I even do not know where to give the php code in to simply strip "bad code" - I do not need an loop behind, the code should only be stripped, then submitted without any error message.
2. Auto Server side validation simply does not work.
1. I checked no validation fields. I sent the form empty, it works fine. The captcha works fine.
2. I changed the setting to one field to be validated agains alphanumeric
3. It would not work with alphas, digits, empty...
4. See the screenshot attached.
Thanks a lot, Dan
Hi,
In the auto server side validation fields you should use the field name only, no brackets, so please use
Let us know the difference
Regards,
Max
In the auto server side validation fields you should use the field name only, no brackets, so please use
input_text_8
Let us know the difference
Regards,
Max
This topic is locked and no more replies can be posted.