Mouse over on Resource Plan in Time Sheet Portal

Neil5
Tera Contributor

In Time Sheet Portal, is it possible to change the mouse over and display the "name" of the resource plan instead of the number? 

 

Neil5_0-1711001160512.png

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Neil5 

 

I am not 100% sure, but you can check the Hint field of that field. Give a try:

 

https://www.servicenow.com/community/developer-articles/adding-hover-text-on-a-field/ta-p/2296873

 

https://www.servicenow.com/community/itsm-forum/how-to-change-hover-text-in-portal/m-p/883342

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thank you. I'm looking more to having this more dynamic rather than static message. What i mean is when you mouse over, it would display the record's name (or any other field of that nature).

Community Alums
Not applicable

Hey Neil, did you ever come up with a solution? We have the same requirement - we don't want users to have to know the RP number to select it. (e.g. a name of "New Hire Onboarding")

Hi Ian, this involves changing the Time Card Grid widget Server Script and HTML. However our requirement is more of an FYI on the RP name rather than finding the RP using the name. Somewhere in line 143 of the Server Script, table 'resource_plan" is added and then as below

 

            var rpNumber = record['resource_plan']['display_value'];
                if(rpNumber.substring(0,4) == "RPLN"){
                var rpRec = new GlideRecord('resource_plan');
                if (rpRec.get('number', rpNumber)){
                var shortDescription = rpRec.getValue('short_description');
                    record['resource_plan']['short_description'] = shortDescription;