I cannot call a Script include from a Client script. (Cannot have the values)

Maria Sol Posse
Tera Contributor

Hello everyone, I have a problem calling the glideAjax in the client script. I dont know why i cannot get the values from the form. 

This is the script include; 

MariaSolPosse_0-1741962921205.png

This is the client script; 

MariaSolPosse_1-1741962969019.png

 

Thanks all. 

7 REPLIES 7

Medi C
Giga Sage

Hi @Maria Sol Posse,

 

Do you see the logs from the script include? 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Hi! no I cannot see the logs, that why i know that never runs (nether the alert inside the "if" statement inside the client script )

@Maria Sol Posse:
There is a typo. It should be:

g_form.getValue('number')

MediC_0-1741963978599.png

 

Is your Script client callable?

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

@Maria Sol Posse 

You are not extracting the answer object from the response.

Please update your callback function as follow:

function (response) {
      var answer = response.responseXML.documentElement.getAttribute("answer")
      if (answer) {
              var returnedData = JSON.parse(answer);
              compareDates(returnedData);
       }
}

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.