function onLoad() { if(g_form.isNewRecord()) { g_form.setMandatory("short_description",true); } }
How to make field mandatory only for new record client script ServiceNow
Working Code Asked question August 8, 2023
function onLoad() { if(g_form.isNewRecord()) { g_form.setMandatory("short_description",true); } }