Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
Girish_Biradar
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Girish_Biradar
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Girish_Biradar
Level 1

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
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

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)