The CreatorCon Call for Content is officially open! Get started here.

How to add hint dynamically to the label.

hsingh
Mega Contributor

I have a fiels label Description but I created a client script to change label to Business Justification. Is there a way to add the help icon dynamically to the client script?

1 ACCEPTED SOLUTION

its done by   inserting next to link.change_request.description :



$(linkLabelName).insert({


                after: '<a id="add_me_macro" href="kb_view.do?sysparm_article=KB0011022"><img src="images/icons/help.gifx" title="Add me" alt="Click on the icon for help" target="_blank"></img></a>  (click icon for help)'


          });


View solution in original post

8 REPLIES 8

pavan_poul
Kilo Expert

Hi Saini,



The label change need to be at client end, and we can use switch case or if else to set the   label



Thanks,


Pavan


The label change is already done I am looking for adding a help icon to it dynamically


so if you click on it it shows you some help or go to a knowledge article?


Can you post a screenshot of the icon you want added dynamically?


Hi Harjinder,



Looks like what you need is a UI macro.You can add a macro beside your field with whatever icon you want and on click of it, you can show some message or popup or something like that. Here is a post from SNC Guru explaining about adding UI macro's to forms. You can play around it a little bit and implement your requirement, its quite easy.



» How to Create an 'Add Me' UI macro for User and Group Fields



Hope this helps Please mark this discussion as answered if this solves your problem.



Thanks & Regards,


Hari