Show/Hide UI Macro on the incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 03:55 AM
Hi,
My requirement is to have a button beside one string field on incident form, when i click on the button it should take the content from that string field and paste it in comments and update the incident...
I have created a UI macro for that and placed that button beside to the form
And here is how it looks
So here what i want to achieve is, i want to display Update button only when checkbox is checked, so i want to show/hide the UI macro button based on the check box..
Can anyone help me how to achieve this with code??
Thanks,
Srikanth
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 04:00 AM
adding one thread here which had quite similar requirement. kindly have a look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2021 12:31 PM
Hi Srikanth,
This one is working for me.
first, replace id="testingbutton" by name="testingbutton"
then use: g_form.getElement('test123').style.visibility="hidden";
How do you attach the "update" button/macro at the end of the string field? I need help with this one.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2021 12:58 PM
You could use the Field decorations dictionary attribute.
In the field's dictionary editor add:
field_decorations=<name of your UI Macro>