Is there any way to restrict Date format in input form

Roopa11
Tera Expert

Hi Team,

 

We have requirement to take single format of date in catalog input form, currently its taking as per user profile format,

 

Is there any way to do that at input form level ? or after submitting item ?

 

Thanks

Roopa

1 REPLY 1

PatrickMutchler
Tera Guru

@Roopa11,

 

Are you using a date or string field?  I've used regex with an onChange Client Script to enforce a certain date format before on a string field.  The same could apply on a catalog item.  With mine, I cleared the field value and displayed a message that informed the user what format to use.  The drawback to that method is that there can be some confusion when it comes to dates that are the 12th or before.