- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 08:28 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 11:55 AM
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)'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 08:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 08:54 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 09:10 AM
Can you post a screenshot of the icon you want added dynamically?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2014 09:20 AM
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