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 07:37 AM
Hi Steve,
Since, you just need to display Annotation field for only "Option A".
You can write a UI policy on change
Condition will be: Reason for Change is "Option A"
UI Policy Action: Annotation field Visible set to TRUE
Thanks,
-Vinay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 10:57 AM
That is a problem i have encountered. For the annotation field, i don't have a Field Name to select from the list to then set visible to True.
how do i set a field name to the annotation field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 07:58 AM
Hi, you can create a onChange Client script to achieve this
field: Reason for Change
The script should be:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'option a'){
g_form.showFieldMsg('reason_for_change', 'Display the following message', 'info');
} else {
g_form.hideFieldMsg('reason_for_change');
}
}
You will have to make sure the field names and values are correct in your script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 10:58 AM
with this method, can i get the message to display under the reason for change field or will it appear at the top of the ticket?