Record Producer

Harshad0405
Tera Contributor

On record producer, The date field should not allow past dates and future 7 days. The date should be 7 days after the current date.

1 ACCEPTED SOLUTION

Sayali Gurav
Tera Guru
Tera Guru

Hello @Harshad0405 ,

You can try it by creating onChange catalog client script :

SayaliGurav_0-1696509152364.png

 

Mark helpful or correct if applicable.

Thanks & Regards,

Sayali Gurav

View solution in original post

3 REPLIES 3

RaghavSh
Kilo Patron

@Harshad0405 This can be achieved easily without script using catalog UI policy on your record producer.

 

https://www.servicenow.com/community/developer-articles/no-code-date-validations-through-catalog-ui-... 

 


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

Sayali Gurav
Tera Guru
Tera Guru

Hello @Harshad0405 ,

You can try it by creating onChange catalog client script :

SayaliGurav_0-1696509152364.png

 

Mark helpful or correct if applicable.

Thanks & Regards,

Sayali Gurav

Rocky14
Tera Contributor

You can use UI policy and try like below.

 

RakeshBarkam_0-1696538511437.png