- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:25 AM
In incident form, how can I link "Impact" field to "Urgency", so that if value of "Impact" is HIGH then value for "Urgency" is also becomes HIGH, similarly for MEDIAM and LOW as well?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:53 AM - edited 11-13-2023 04:55 AM
Hi @Udbhav
You can try the following onChange client script on impact field.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if ( isLoading || newValue == '') {
return;
}
g_form.setValue('urgency', newValue);
g_form.setReadOnly('urgency', true);
}
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:53 AM
Hi @Udbhav
Please follow the below steps to achieve your requirements:
- Go to Configure Dictionary of Urgency field and create a new entry in the Dictionary Override related list (if not created already for the incident table).
- Mark Override dependent checkbox as TRUE.
- Use impact in the Dependent field that will be visible after step 2.
- Go back to Configure Dictionary and Choices related list under it.
- Fill values in the Dependent Value field of the choices.
Below are the screenshots for your reference:
Thanks!
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:53 AM - edited 11-13-2023 04:55 AM
Hi @Udbhav
You can try the following onChange client script on impact field.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if ( isLoading || newValue == '') {
return;
}
g_form.setValue('urgency', newValue);
g_form.setReadOnly('urgency', true);
}
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:53 AM
Hi @Udbhav
Please follow the below steps to achieve your requirements:
- Go to Configure Dictionary of Urgency field and create a new entry in the Dictionary Override related list (if not created already for the incident table).
- Mark Override dependent checkbox as TRUE.
- Use impact in the Dependent field that will be visible after step 2.
- Go back to Configure Dictionary and Choices related list under it.
- Fill values in the Dependent Value field of the choices.
Below are the screenshots for your reference:
Thanks!
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up 🙂