Expand my Community achievements bar.

SOLVED

Version control for AEM forms

Avatar

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

Avatar

Correct answer by
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

Avatar

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

Avatar

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?

Avatar

Correct answer by
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.