Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Discard button is not working when clicking on the save changes popup

ravina _1
Tera Contributor

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

Bert_c1
Kilo Patron

I suggest that you post you client script definition, then Community members can assist.

ravina _1
Tera Contributor
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');
}
}