How to force a date to be less than 90 days in the past in a Record Producer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 11:11 AM
Nothing special with schedules or anything, just straight up no further than 90 days in the past. If the user tries to make it a date that is further than that maybe a pop-up tells them it is not possible and clears the field? Unless there are any other ideas or solutions.
Thank you in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 11:54 AM
Yes this is true. The problem with the onChange is the user can still submit the form even though the error is showing. I dont want that to happen.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 12:19 PM
Ah i see.
Then make that field mandatory. And on error, clear the field. Then user has to enter the data before submitting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 12:23 PM
Gotcha! how to I clear the field on error?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 01:29 AM
You can clear the error by using
g_form.hideErrorBox('YOUR_FIELD');
Mark the comment as a correct answer and also helpful once worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 07:05 AM