UI Action issue

Community Alums
Not applicable

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.

 

1.png

 

2.png

 

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.

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

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 

View solution in original post

3 REPLIES 3

Chaitanya ILCR
Kilo Patron

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 

Moin Kazi
Kilo Sage
Kilo Sage

@Community Alums  You can achieve without onclick function.

See attached images - 

MoinKazi_0-1728236280721.png

MoinKazi_1-1728236321397.png

 

Please mark my answer as correct and helpful if it works for you.

 

Regards

Moin

Ramesh Poola
Tera Guru

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