I am looking for help make web service working in HTML form. The web service in xdp file works fine when preview as PDF. But it doesn't work when preview as HTML in AEM. How to make web service call in xdp file working when the file is Previewed as HTML in AEM? Any suggestion or clue is appreciated.
@harry2ca HTML rendered form will supports VanillaJS in the script editor. Like Pulkit said, make a ajax call to webservice and it will be fine unless you have some extra security layer on the service.