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

SOLVED

Version control for AEM forms

deepakt84913413
Level 4
Level 4

How do I control the version of rules in the rule editor by maintaining them at a single location? I just don't want to checkin my content node into GIt to maintain this.

1 Accepted Solution
James_R_Green
Correct answer by
Level 7
Level 7

deepakt84913413

If you export a form from aem, or look at the nodes in crx, you will see that the rules entered via the rules editor are stored on the form. There is no way to reference the rules from another form to reuse the rules. That's why I would recommend putting code that you want to reuse into a client library. As you can then call the same functions from any form that references the client library.

View solution in original post

3 Replies
James_R_Green
Level 7
Level 7

Hi deepakt84913413

You can  add a reference to a client library category to you adaptive form, and then in the rules editor you can call functions from your client library.

If you haven't added a clientlib before there are a few guides on line. I can give links if needed but have a look on google.

Thanks,

Jim

deepakt84913413
Level 4
Level 4

Hey James,

I was more talking about the rules I make using the rule editor. How do I make sure I don't duplicate and use the same function in other forms as necessary?

James_R_Green
Correct answer by
Level 7
Level 7

deepakt84913413

If you export a form from aem, or look at the nodes in crx, you will see that the rules entered via the rules editor are stored on the form. There is no way to reference the rules from another form to reuse the rules. That's why I would recommend putting code that you want to reuse into a client library. As you can then call the same functions from any form that references the client library.

View solution in original post