Trigger a function (written in rule editor of AEM Form component) from JQuery?

Avatar

Avatar

Girish_Biradar

Avatar

Girish_Biradar

Girish_Biradar

02-05-2020

Hi All,

 

I have a function which is written in AEM Form component's rule editor, I want to trigger this function based on some condition in JQuery.

How to trigger the function call?

 

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

04-05-2020

Get hold of the event, write a jquery for the event, and place the rule editor code inside the jquery.

This whole logic should be on form initialize or field initialize. 

 

$("#xyzFieldID").click(function(){
 field.value="test";
});

 

@Girish_Biradar 

Answers (0)