- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 07:36 AM
Hi,
I have created a UI Action for the Cancel incident, but it is not working. Clicking on the 'Cancel incident' button doesn't do anything. Kindly help.
function cancel_jsftSubmit(){
gsftSubmit(null, g_form.FormElement(), 'cancel_incident_jsftSubmit');
}
if(typeof window == 'undefined'){
cancel_Incident();
}
function cancel_Incident(){
current.state = 8;
current.update();
action.setRedirectURL(current);
}
Regards
Suman P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 08:03 AM
Hi Suman( @Community Alums ),
function cancel_jsftSubmit(){
gsftSubmit(null, g_form.formElement, 'cancel_incident_jsftSubmit');
}
if(typeof window == 'undefined'){
cancel_Incident();
}
function cancel_Incident(){
current.state = 8;
current.update();
action.setRedirectURL(current);
}
try this
g_form.FormElement is not a method and F should be in small case in FormElement
Regars,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 08:03 AM
Hi Suman( @Community Alums ),
function cancel_jsftSubmit(){
gsftSubmit(null, g_form.formElement, 'cancel_incident_jsftSubmit');
}
if(typeof window == 'undefined'){
cancel_Incident();
}
function cancel_Incident(){
current.state = 8;
current.update();
action.setRedirectURL(current);
}
try this
g_form.FormElement is not a method and F should be in small case in FormElement
Regars,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 10:40 AM
@Community Alums You can achieve without onclick function.
See attached images -
Please mark my answer as correct and helpful if it works for you.
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 08:44 PM
Hi Suman.
Could you please inspect the browser and check once are you getting any errors.
and also please try to uncheck the Isolate script check box and try once (Note: By default Isolate script check box wont be available in the form you can do that in list view).
Regards,
Ramesh