I am new to AEM and wanted to test the form using javascript. In my AEM form there is button which clears all the fields value.
I need to click on that button using javascript.
I am not able to find any function for click or press in given document.
https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf
Solved! Go to Solution.
Views
Replies
Total Likes
@arvind12 Unfortunately not! Since, JS is served from the clienlib, you cannot inject it at runtime. However, you can use your favourite IDE to integrate it to AEM clientlib.
Hi @arvind12 ,
In AEM - JS,CSS, etc. keeps under one folder that's called clientlib. To render your script based on some event you should have your JavaScript implemented in clientlib. For how to create clientlib please go through these below links.
You can also visit this article to include JavaScript in different ways: https://sourcedcode.com/blog/aem/how-to-include-javascript-for-an-aem-website
Hope that helps!
Regards,
Santosh
Is there something which I can try/run with JavaScript Console within Adobe?
@arvind12 Unfortunately not! Since, JS is served from the clienlib, you cannot inject it at runtime. However, you can use your favourite IDE to integrate it to AEM clientlib.
Views
Likes
Replies