Custom Fields regex Validation field

  • Paul Payette
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month 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

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

More
9 years 1 month 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

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

  • Paul Payette
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month 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

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

  • Paul Payette
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 weeks 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

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

  • Paul Payette
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #59372 by Paul Payette
Replied by Paul Payette on topic Custom Fields regex Validation field
any hints please

Thanks

Paul

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

More
9 years 2 weeks 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.