- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2015 12:39 AM
Hi All,
I have created a UI Macro which basically adds an icon next to reference field on incident form. On click of this icon,user will be redirected to list of change records.Now I want to show/hide this UI macro based on priority of incident.
Any inputs on how to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2015 12:47 AM
I hope you have been assigned ids to the HTML elements you created in UI Macro. You could make use of those element ids in an onLoad or onChang priority client script to hide the macro.
gel("element_id").style.display = "none" ;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 11:24 AM
yes, i understand this part, but i'm not actually finding the element_id
i've tried several things that i thought may be the element id but it's not working.
can you show me part of your script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 08:48 PM
Hi Steven,
Here the id of the element is getting generated dynamically and stored in variable jvar_n . What I will suggest is to write the code of your macro inside a <div> and assign id to that div. Now use that id to hide the whole macro.