- Posts: 23
- Thank you received: 0
Custom Fields regex Validation field
- Paul Payette
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 2 months ago #58125
by Paul Payette
Custom Fields regex Validation field was created by Paul Payette
Hi Tuan,
Where to I place a custom validation regex epression for cutom fields. I found some in jquery.php. Do I have to modify other files?
essentially I want a field that validated a date format = MM/YYYY
something like
“dateacces”: {
"regex": /^((0[1-9])|(1[0-2]))\/((201[5-9]))$/,
"alertText": "'.JText::_('OSM_NOT_A_VALID_DATE’).’”
},
Would be nice if we coud paste our own regex in the validation field - Is it possible?
Thanks
Where to I place a custom validation regex epression for cutom fields. I found some in jquery.php. Do I have to modify other files?
essentially I want a field that validated a date format = MM/YYYY
something like
“dateacces”: {
"regex": /^((0[1-9])|(1[0-2]))\/((201[5-9]))$/,
"alertText": "'.JText::_('OSM_NOT_A_VALID_DATE’).’”
},
Would be nice if we coud paste our own regex in the validation field - Is it possible?
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
10 years 2 months ago #58143
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Fields regex Validation field
Hi Paul
Unfortunately, it is not possible to do that at the moment. I will try to add support for it when I come back from new year holiday on 24th . Right now, we are on new year holiday ( en.wikipedia.org/wiki/Lunar_New_Year ), so we could not work much
Tuan
Unfortunately, it is not possible to do that at the moment. I will try to add support for it when I come back from new year holiday on 24th . Right now, we are on new year holiday ( en.wikipedia.org/wiki/Lunar_New_Year ), so we could not work much
Tuan
Please Log in or Create an account to join the conversation.
- Paul Payette
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
10 years 2 months ago #58151
by Paul Payette
Replied by Paul Payette on topic Custom Fields regex Validation field
Thanks, will indeed be nice if you could implement it eventually
Happy holidays
Happy holidays
Please Log in or Create an account to join the conversation.
- Paul Payette
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
10 years 1 month ago #58818
by Paul Payette
Replied by Paul Payette on topic Custom Fields regex Validation field
Hi Tuan,
Hope you had a great holiday - Happy new year.
Back to the Regex validation field do you think there will be a solution soon? In the mean time can you point me where to add id manually
Thanks
Hope you had a great holiday - Happy new year.
Back to the Regex validation field do you think there will be a solution soon? In the mean time can you point me where to add id manually
Thanks
Please Log in or Create an account to join the conversation.
- Paul Payette
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
10 years 1 month ago #59372
by Paul Payette
Replied by Paul Payette on topic Custom Fields regex Validation field
any hints please
Thanks
Paul
Thanks
Paul
Please Log in or Create an account to join the conversation.
- RC Cola
-
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
10 years 1 month ago #59390
by RC Cola
Replied by RC Cola on topic Custom Fields regex Validation field
Have you checked jquery.validationEngine.js in the com_osmembership\assets\js\validate folder? It looks like the code is in there. Dates look like they're on like 1200 or so, but not sure if those are front end or backend validators
Please Log in or Create an account to join the conversation.
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.