- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 02:01 AM - edited 03-13-2024 03:00 AM
How to set 'close code' choice field in change request form to 'Cancelled' when the state of change request changes to 'Cancelled' ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 03:14 AM
Try below code in script section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 03:15 AM
Hi @Nitin21,
Do you want the Close Code to be set by the system in an automated fashion with the same value every time such as the value of 'Cancelled' for example (depending on what codes have been implemented on your system) or do you want this to be selectable by the user when the Change is Cancelled?
There are various ways to solve this each differing in complexity, however, my recommendation would be to automate this and have a simple Business Rule set this for you. The State change and Cancellation reason is captured as part of the baseline configuration so the Business Rule option outline below should provide a suitable solution.
See the below screenshots for a low-code/no-code option.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
(When to run Tab)
(Actions Tab)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 03:11 AM
this is what i did in my personal instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 03:15 AM
Hi @Nitin21,
Do you want the Close Code to be set by the system in an automated fashion with the same value every time such as the value of 'Cancelled' for example (depending on what codes have been implemented on your system) or do you want this to be selectable by the user when the Change is Cancelled?
There are various ways to solve this each differing in complexity, however, my recommendation would be to automate this and have a simple Business Rule set this for you. The State change and Cancellation reason is captured as part of the baseline configuration so the Business Rule option outline below should provide a suitable solution.
See the below screenshots for a low-code/no-code option.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
(When to run Tab)
(Actions Tab)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 03:33 AM - edited 03-13-2024 05:16 AM
Thank you! this works too.