- Posts: 8
- Thank you received: 0
force date entry with dashes
- GUILLOT Daniel
- Topic Author
- Offline
- New Member
-
Less
More
2 years 3 months ago #155794
by GUILLOT Daniel
force date entry with dashes was created by GUILLOT Daniel
Happy new year for all.
In a custom field, wich is a date, i would like to know the syntax to force validation according to the format with dashes.
For example : 14-01-2023
Could you give me the validation rule to write ?
Thank you a lot.
Best regards
In a custom field, wich is a date, i would like to know the syntax to force validation according to the format with dashes.
For example : 14-01-2023
Could you give me the validation rule to write ?
Thank you a lot.
Best regards
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 3 months ago #155797
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic force date entry with dashes
Hello
Exactly how you want to validate data for that field? Could you please explain more details about it?
Tuan
Exactly how you want to validate data for that field? Could you please explain more details about it?
Tuan
Please Log in or Create an account to join the conversation.
- GUILLOT Daniel
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
2 years 3 months ago #155804
by GUILLOT Daniel
Replied by GUILLOT Daniel on topic force date entry with dashes
Hello TuanTo register for an event, I ask for the athlete's date of birth.
The field is a Date type field. And when typing, I would like the date format to be as follows: 15-01-1961
So I would like to know how to write the validation rule so that the date entered is in this format with dashes.
Thank you so much.
The field is a Date type field. And when typing, I would like the date format to be as follows: 15-01-1961
So I would like to know how to write the validation rule so that the date entered is in this format with dashes.
Thank you so much.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 3 months ago #155807
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic force date entry with dashes
Hello
Go to Events Booking -> Configuration, look at Date Picker Format config option and change it to the format you want
Then edit the custom field, set Validation Rules to validate[required,custom[date]]]
Then check it again. It should work as you want
Regards,
Tuan
Go to Events Booking -> Configuration, look at Date Picker Format config option and change it to the format you want
Then edit the custom field, set Validation Rules to validate[required,custom[date]]]
Then check it again. It should work as you want
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- GUILLOT Daniel
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
2 years 3 months ago #155811
by GUILLOT Daniel
Replied by GUILLOT Daniel on topic force date entry with dashes
once again, thank you very much Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 3 months ago #155816
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic force date entry with dashes
You're welcome. Please continue using the extension. If you have questions or need help, please don't hesitate to ask us
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.