Is there any way to restrict Date format in input form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 07:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 08:43 AM
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.