ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Validation rules

Arnold_S 20 Feb, 2017
Hi all,
I built a form inside CCv6. There are some advanced settings possibilities. e.g. validation rules, extra attributes, .... How can I use them for a e.g. required input ?
Thx
Max_admin 20 Feb, 2017
Hi Arnold,

Here is an example of a validation rule:
required:This field is required

The extra attributes are for the field, you may for example want to set a data attribute:
data-myattr:some data here
class:some field class

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
healyhatman 19 Jun, 2017
Hi Max - can you give more examples of validation rules? For example how I would construct a custom datamask and a custom prompt to go with it?

Or is there a list I can see showing the different validation rules you support? And the same for the extra attributes field (and the correct syntax?)
Max_admin 19 Jun, 2017
Hi healyhatman,

The attributes can be anything, it will be added to the field tag, there are no specific "magical" attributes.

The validations rules are available in the "Text field" validation section already, the main function of the "Validations rules" box now is to use it for custom validations, an example on this can be found here:
https://www.chronoengine.com/faqs/74-chronoforms6/5293-validating-fields.html

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
healyhatman 19 Jun, 2017
2 Likes
I suppose it was more how they're constructed. For anyone else that wants to know:

Validation Rules
rule[specifics]:prompt
examples:
regExp[/[0-9]{4}/]:Must be 4 digits.
length[3]:Must be at least 3 characters

Attributes
attribute:value or group:attribute:value
examples:
height:100px
style:color:blue

(edit reason: didn't include the delimiters for the regex)
healyhatman 20 Jun, 2017
Hey Max how about the "Validate data" action in the Setup tab? Any instructions for how that works, and a list of the validation rules supported?
Max_admin 20 Jun, 2017
Hi healyhatman,

The Validate Data has almost the same validation methods, this is the syntax:
field/required:this field is required
field/email:an email s required

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
healyhatman 20 Jun, 2017
1 Likes
"Almost" the same validation methods? Can you please list all the validation methods supported, so I don't have to guess anymore?🙂
Zyraj 23 Nov, 2017
Dude! what's with the useless answers! he might as well tell you to google it, goshhhh

Thanks healyhatman for doing the "support's" work!🙂
GreyHead 23 Nov, 2017
1 Likes
Hi healyhatman,

Looking at the code - and I may not be looking in the right place - I can see these validations:

required
is_empty
no_spaces
match *
regex *
alpha *
alphanumeric *
digit *
nodigit *
number *
email
phone *
phone_inter *
url

Those with asterisks do not appear in the manual, but these do

is_integer
decimal

Bob
Max_admin 27 Nov, 2017
Dude! what's with the useless answers! he might as well tell you to google it, goshhhh
Later the "Validate fields" action was introduced and that one automatically applies the rules you have configured in your fields!🙂

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
RobP 26 Feb, 2019
The only the ones that work are the 6 you can set with the sliders.
For me field validation is the most important part of a form.
Validation of alphanumeric input is the most important and unfortunately missing.

Rob
Max_admin 27 Feb, 2019
Hi Rob,
​
If you add a regex then it will be checked!
​
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
RobP 27 Feb, 2019
Hi Max,

My comment was on the post of Greyhead.
The validation rules he mentioned don't work.

Also the text area does not have a regex field.

Rob
Max_admin 28 Feb, 2019
Hi Rob,
​
Ok, there was a misunderstanding, what validation rules would you like to add/fix ?
​
I will add regex to the textarea!
​
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
healyhatman 28 Feb, 2019
https://www.chronoengine.com/forums/posts/t106813/validate-data-action-and-settings?keywords=
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com