I have added a custom checkbox to the page properties and am attempting to invoke a servlet when the author checks this checkbox.
ICurrently searching for the precise code or file that needs to be overridden within the 'apps' directory in order to call the servlet.
Solved! Go to Solution.
Views
Replies
Total Likes
You can give a unique class name at checkbox field as below. and write jQuery event .
and then in the JS file add a function, to handle the select option on this field
$(document).on("selected", ".cq-dialog-layout", function() {
// ajax call to make servlet
}
Thanks ,
Siva
Hi @Nilesh_Mali
Instead of overriding in apps file. You can create a clientlibrary which will call a servlet on the checkbox event. Since you have created a custom property you can have a custom class or id name for checkbox.
You can give a unique class name at checkbox field as below. and write jQuery event .
and then in the JS file add a function, to handle the select option on this field
$(document).on("selected", ".cq-dialog-layout", function() {
// ajax call to make servlet
}
Thanks ,
Siva
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies