Service Catalog: change a catalog variable label


function onLoad() {
    //shared functions for form load
    var label='Select site';
    var labelElement = $('label_' + g_form.getControl('requested_for').id);
    labelElement.select('.sn-tooltip-basic').each(function(elmt) {
        elmt.innerHTML = label;
    });
}



(courtesy of https://www.servicenowguru.com/system-ui/ui-scripts-system-ui/modifying-label-form-fields-client-scripts/ )

note: have just realised this doesn't appear to be Service Portal friendly!!! SP version to follow...

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue