Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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? 


Thanks & Best regards,
Medi

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?

 


Thanks & Best regards,
Medi

@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);
       }
}

 


Thanks & Best regards,
Medi