Display Annotation field on Change Mgmt form based on another field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 07:34 AM
on my change mgmt form, i have a field called 'reason for change'. when i select an option, say option A, from that list, i need to have an annotation field display but only for that option. any other selected option, options B-Z, from the 'reason for change' list should not display the annotation field.
currently i have it displaying on the form for all reason's for change as i can't find the process to toggle it.
not sure if annotation is the correct way to do this or if some sort of message or information text box would work.
any thoughts and steps to help out would be appreciated.
Thanks.
Steve
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 11:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 11:52 AM
A small addition to your script LZ
In his requirement he need to hide the field too.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'option a'){
g_form.setVisible('reason_for_change',true);
g_form.showFieldMsg('reason_for_change', 'Display the following message', 'info');
}
else
{
g_form.hideFieldMsg('reason_for_change');
g_form.setVisible('reason_for_change',false);
}
}
-Vinay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 12:01 PM
next question. i can see the message appear on the change form as i fill out the form but when i click 'Request Approval', the message disappears.
how can i have the message stay on the screen throughout the life of the ticket versus just appear at entry.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 12:33 PM
Slight modification to above script. just commented out if block.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
// if (isLoading || newValue === '') {
// return;
// }
if (newValue == 'option a'){
g_form.setVisible('reason_for_change',true);
g_form.showFieldMsg('reason_for_change', 'Display the following message', 'info');
}
else
{
g_form.hideFieldMsg('reason_for_change');
g_form.setVisible('reason_for_change',false);
}
}
-Vinay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 12:44 PM