calling AEM servlet from form
I have a rest endpoint that I want to invoke. I dont want to use fdm, how to invoke AEM servlet from form? can we set checkbox dynamically with servlet response?
I have a rest endpoint that I want to invoke. I dont want to use fdm, how to invoke AEM servlet from form? can we set checkbox dynamically with servlet response?
1. Create a client libs folder

2. In the JS file create a function
function getPdf() {
var settings = {
"async": true,
"url": "URL will go here",
"method": "POST",
data: {
'data': result.data
}
}
$.ajax(settings).done(function(response) {
guideBridge.resolveNode("pdf").value = response;
})
}
3. Go to form, map your client libs.
4. Go to rule editor/code editor and map the function which is making ajax call as shown below:

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.