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

Can we call script include ( GlideAjax) from client controller ?

String
Kilo Sage

Hi Team ,

We using client controller to call the script include 

String_0-1678208182395.png

 

but we are enable to invoke the script include 

String_1-1678208234363.png

Please guide me where it went wrong 

 

1 ACCEPTED SOLUTION

Prince Arora
Tera Sage

@String ,

 

Can you please try this method:

PRINCE_ARORA_0-1678211003369.png

 

 

Client Code:

$scope.myFunc = function(){

c.data.shipto = $scope.page.g_form.getValue('shipto');
c.data.billto = $scope.page.g_form.getValue('billto')
c.server.update();
}

 

Server Code:

if (input && input.shipto && input.billto) {

//you can call script include here

var scriptInclude = new scriptIncludeName();

scriptInclude.functionName( input.shipto, input.billto);

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact!

View solution in original post

5 REPLIES 5

Thanks a lot @Prince Arora