start date end date

dmahendran
Tera Contributor

I would like to implement a restriction where the end date cannot be selected beyond one month from the start date

18 REPLIES 18

Voona Rohila
Kilo Patron
Kilo Patron

HI @dmahendran 

This can be achieved with no code with UI Policies, Please go through below article

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

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

@Voona Rohila 

I couldn’t find a solution that meets my requirement of restricting the user from selecting an end date beyond one month from the start date. I would appreciate it if you could provide further guidance on this.

Hello @dmahendran , you can write UI policy as depicted below followed by UI policy action.

UI Policy:

Nishant8_0-1750675198223.pngNishant8_1-1750675210708.png

UI policy Action:

Nishant8_2-1750675284277.png

Regards,

Nishant

 

@Nishant8 Thanks for the response, 

The restriction is role-based, and since UI Policies don’t support role-based conditions, this needs to be managed differently. Along with that, we also need to prevent users from selecting an end date more than one month after the start date