Validation Rules

More
9 years 7 months ago #67628 by Jeff
Validation Rules was created by Jeff
I have a custom field - checkbox. There are 4 options which can be selected. Is it possible to set a validation rule so that a minimum of 2 checkboxes are checked? Thanks.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 7 months ago #67631 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation Rules
Hi Jeff

Yes. You can edit the custom field, set the Validation Rules to validate[minCheckbox[2]] and it should work well. Please see posabsolute.github.io/jQuery-Validation-Engine/ to see all the validation options which you can use (we use jQuery validation for this validation)

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #67778 by Patrick
Replied by Patrick on topic Validation Rules
Hi Tuan

I did check the manual, but I did not find a solution for this: I need the date in this format: dd.mm.YYYY.

I have created a custom textfield. There users must enter their birthday in above format.

How can I change this?

Dates use the ISO format YYYY-MM-DD
Is not correct for my use :(

Thanks a lot!

Patrick

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 7 months ago #67800 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation Rules
Hi Patrick

You will need to create a Date custom field instead of a text field. Then go to Events Booking -> Configuration, find the config option "Date Custom Field Format", change it to the format you want

After that, It should work as expected (users can choose the date from date picker input, not entering it manually)

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago - 9 years 7 months ago #67820 by Patrick
Replied by Patrick on topic Validation Rules
Hi Tuan

Thank you for the tip! It works.

Only one small thing: in the drop down menu of Date Custom Field Format I have no d. m. Y

I need it with the dots instead of slahs or dash. Any chance to change this? :-)

Thank you so much!

Regards
Patrick
Last edit: 9 years 7 months ago by Patrick.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 7 months ago #67853 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation Rules
Hi Patrick

Didn't think about this format. Will work on it during this weekend and make it available on Monday

Regards,

Tuan
The following user(s) said Thank You: Patrick

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago - 9 years 7 months ago #67865 by Patrick
Replied by Patrick on topic Validation Rules
Hi Tuan

Great, thank you very much!

Regards
Patrick
Last edit: 9 years 7 months ago by Patrick.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 7 months ago #67883 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation Rules
Hi Patrick

You can download latest version from My Downloads menu item, upgrade it to your site. Then you can choose this format for date custom field

Regards,

Tuan
The following user(s) said Thank You: Patrick

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago - 9 years 7 months ago #67979 by Patrick
Replied by Patrick on topic Validation Rules
Hi Tuan

Thank you very much, now I can select d.m.Y from the drop down list.

I have now created a custom field of type Date. There I use validation Past Date. Unfortunately if I enter d.m.Y, I get an error message: Please correct it with format YYYY-MM-DD

I have set up d.m.Y everywhere in the configuration: Date Format, Event Date Format and Date Custom Field Format. It looks like the validation does not take over my d.m.Y setting(?)

Any idea?

Thanks a lot!

Regards
Patrick
Last edit: 9 years 7 months ago by Patrick.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 7 months ago #67987 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation Rules
Hi Patrick

Right now, the validation still doesn't work. We will need to alter some javascript validation engine to change this behavior. We are working on it at the moment and hopefully we will have it works well within this week

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc