code-snippets
code-snippets copied to clipboard
ServiceNow's Code Snippets community repository, managed by the Developer Program and the sndevs community.
function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } var project = g_form.getReference('project_name', populateProjectNumber); } function populateProjectNumber(project) { g_form.setValue('project_number', project.u_project_number); }
This submission seems very interesting. I'd like to see more details about the benefits and how to use it. https://github.com/ServiceNowDevProgram/code-snippets/tree/main/Script%20Includes/API%20Model%20Template%20for%20New%20Application