Date field restriction only for friday

21051769
Tera Contributor

Hi @Ankur Bawiskar
Reposting my question here,
My requirement is that, i have to restrict the user to select only fridays in the date field it should not allow any other day to be selected.

I wrote used catalog ui policy for this but it allows me to any day but upon selecting anything apart from friday it clears the value and shows alert message only select friday but it works only once upon changing the day the next time it doesn't work.
image005.png

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@21051769 

why not write onChange client script for that?

you can easily check if it's friday

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Can you please show me an example do we have to write a script-inlcude as well to call the current date and day to verify whether it's friday or not if not can you show me how?