The CreatorCon Call for Content is officially open! Get started here.

UI Action does not work

Alon Grod
Tera Expert

Hi,

Im trying to create a UI Action on a a list. Why Im not getting any log?

Screenshot 2023-10-01 at 12.23.38.png

Screenshot 2023-10-01 at 12.24.46.png

 

Screenshot 2023-10-01 at 12.25.09.png

1 ACCEPTED SOLUTION

@Alon Grod Please update your UI Action code as follows and it should work.

 

function myFunc(){
	var glideAjax = new GlideAjax('alonTest');
	glideAjax.addParam('sysparm_name','isTest');
	glideAjax.getXML(responseCallback);

	function responseCallback(respone){
		alert('response received');
	}
}

View solution in original post

8 REPLIES 8

Sandeep Rajput
Tera Patron
Tera Patron

@Alon Grod You forgot to add your onClick() function name in Onclick field. Please add the same and the method call will start taking place.

 

Screenshot 2023-10-01 at 12.24.46.png

@Sandeep Rajput still not working

Screenshot 2023-10-01 at 12.37.23.png

@Alon Grod Please write myFunc() in place of myFunc in Onclick field, brackets () should also be present.

@Sandeep Rajput still not working

Screenshot 2023-10-01 at 12.42.53.png