Unable to check record history through context menu list if onSubmit functionality fails on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 10:05 PM - edited 01-09-2024 12:13 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 10:36 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 11:13 PM - edited 01-08-2024 11:15 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 11:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 11:57 PM
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.