Discard button is not working when clicking on the save changes popup
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2024 11:11 AM
We have a Onchange client script ,When we change the type to "Parent" in change form it should switch the view to Parent view of change request but when we change the type in form , it shows the save changes pop up message and when we try to discard it ,Discard button is not working .
How can we fix this issue?
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2024 12:29 PM
I suggest that you post you client script definition, then Community members can assist.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2024 12:39 PM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '')
{
if(!g_user.hasRoleExactly('change_manager') && g_form.getValue('type') != 'Parent')
{
g_form.removeOption('type', 'Parent');
}
return;
}
if(newValue == 'Parent')
{
switchView('section','change_request','parent');
}
}