I cannot call a Script include from a Client script. (Cannot have the values)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 07:41 AM
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;
This is the client script;
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 07:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 07:51 AM
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 )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 07:53 AM
@Maria Sol Posse:
There is a typo. It should be:
g_form.getValue('number')
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 07:59 AM
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.