logo

NJP

Restrict Past Date Selections under Change Request using UI Policy

Import · Aug 05, 2022 · article

I have explained how we can Restrict Past Date Selections using UI Policy in ServiceNow.

If you have any feedback related to the scripting part, please write it in the comment box.

==================UI POLICY====================

Table - Change RequestConditions - Planned Start Date before Today

Execute if true Scripts -

function onCondition() { alert('Planned Start Date should not be added before today!!!'); g_form.clearValue('start_date');

}

Best Regards,

Prashant

If my article helped you in any way, please mark this as helpful and make this a bookmark.

Labels:

image

View original source

https://www.servicenow.com/community/developer-articles/restrict-past-date-selections-under-change-request-using-ui/ta-p/2305847