August 2017
Intermediate to advanced
1330 pages
56h 17m
English
Next, make the option unavailable in the State choice list. While the Business Rule will abort any update if the Approval field isn't set correctly, it's nice to stop users getting confused and thinking they can set it themselves.
function onLoad() {
if (g_form.getValue('state') != '10')
g_form.removeOption('state', 10);
}
This script uses the GlideForm object to remove the External repair option from the choice list, but only if the state is not already selected.
Read now
Unlock full access