can I change the label for the variable formatter name that shows up on a form?

tricial
Giga Contributor

I need to change the name that shows up on the form for the Varaible editor formatter so instead of displaying

Varaibles, I need to label that to be Work Actions or something other than variables.

Thank you

Tricia

1 ACCEPTED SOLUTION

Next step is to check your browser console and see if there are any errors.   There could be another script preventing this one from running.   You can also test in the Javascript executor (press CTRL+ALT+SHIFT+J) while viewing the 'sc_task' form where the variable editor is and paste in everything inside of the 'onLoad' function.


View solution in original post

17 REPLIES 17

Ok I will try that


Be back at ya!



Thank you




<https://htmlsig.com/t/000001C0XZNW>


Patricia Lynch / ServiceNow Senior Technical Consultant 
patricia.lynch@cdillc.com<mailto:patricia.lynch@cdillc.com>


CDI LLC 
O +1 (201) 426-9264
M +1 (201) 397-3766


696 US 46 West, Teterboro, NJ 07608 
www.cdillc.com<http://www.cdillc.com/>


<https://htmlsig.com/t/000001C4DJ2F>[cid:image004.png@01D28E95.77E0D3E0]<https://htmlsig.com/t/000001C8HE8S>[cid:image005.png@01D28E95.77E0D3E0]<https://htmlsig.com/t/000001C6Q638>[cid:image006.png@01D28E95.77E0D3E0]<https://htmlsig.com/t/000001C95K6C>


Ha..! It's working


Took my do gout for a walk came back to work on this again and walaaa.



I added the innerText and that seemed to work.



function onLoad() {


try{


$$('.veditor_header')[0].innerHTML = 'Work Actions';


$$('.veditor_header')[0].innerText = 'Work Actions';


}catch(e){}


}



Thank you All very much!


Tricia


Thank you.   If you can mark my answer as correct I'd appreciate it.


Thank you again Mark!


This worked


Tricia


Mark,



Thank you. I have gone one step further to hide it completely, as such:


try


{


$$('.veditor_header')[0].style.display='none';


}


catch(e){}



Thanks for help putting the pieces together as its always bothered me.