Unable to check record history through context menu list if onSubmit functionality fails on the form

siva krishna M2
Tera Guru

Unable to check record history through context menu list if onSubmit functionality fails on the form but able to check the calender history of the form.

 

I want to check the history (list) of the closed incident. Through context menu when i go through History=>List the page is not redirecting to audit page and i found that it is checking on-submit scripts. Is there a way to turn off the functionality of checking on submit scripts instead of modifying the on-submit scripts for the form.

 

Could you please elaborate the functionality working in the backend when we go click on History=>List in context menu? Where(in which technical component) the on-submit validation is checking?

 

 

 

 

7 REPLIES 7

Maik Skoddow
Tera Patron
Tera Patron

Hi @siva krishna M2 

sorry, it's not clear what your issue is. I don't understand what your "on submit" is related to the audit list. Please share a screenshot.

Maik

Hello @Maik Skoddow ;

 

We have created a onSubmit client script on incident table to restrict the submission of incident form with short description "test" using below script

 

function onSubmit() {
//Type appropriate comment here, and begin script below
var b = "test";
var k = g_form.getValue('short_description');
if(k.indexOf(b)!=-1)
{
return false;
}
}

 

We have few existing incidents with short description as "test". Now i opened one of the existing incidents with short description "test" and i want to see the history of this incident record using history=>List in the form context menu but i am unable to redirect to audit history page(i.e sys_history_set ) of this incident record when i click on list in the history in context menu of the incident record because of this onSubmit client script but i am able to open the history=>calender in the form context menu.

 

Could you please elaborate the functionality working in the backend when we go click on History=>List in form context menu? Where( in which technical component) the onSubmit validation is checking?

 

 

 

 

 

 

 

 

Hi @siva krishna M2 

sounds a bit strange.

Basically, a form submit is only performed if anything has changed. So if you open the incident and then go to the audit list without any interactions in the form directly - is the issue still existing?

Maik

Hello @Maik Skoddow 

 

yes. issue exists even if we are not changing any fields on the form. It is checking onSubmit validations on the form when we click on history=>list in the form context menu. If i deactivate the onSubmit client script it is working fine. Issue is also reproducible in personal developer instance.