Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
AJAX calls to suitelet
Hello,
I am new to scripting so I may have some basic mistakes, I am trying to have an online custom html form send ajax post/get to suitelet for recaptcha 2.0 api verification.
My online Form:
https://forms.na1.netsuite.com/app/site/crm/externalleadpage.nl?compid=1160039&formid=14&h=abe958d8be8debb599b0&redirect_count=1&did_javascript_redirect=T
I cannot get the suitelet to execute, here is my ajax function.
function sendsuitelet(){
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "/app/site/hosting/scriptlet.nl?script=41&deploy=1", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("g-recaptcha-response=pword")
}
And backend SUITELET:
0