Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

AEM Foms (On-premisis -OSGI forms add-on )--Rule editor enable configuration for Adative forms core components

Avatar

Level 6

Hi Team


Currently I am working developing the custom components using adative form core components but by defeault "Edit rule" disabled  , Please let me know if any configuration to enable "rule editor" so that i can write java script instead using only viusal editor core component level.

we are using AEM Forms (6.5.21) Projects on-premisis with OSGI Forms add-on)

AEM Foms (On-premisis -OSGI forms add-on ) --rule editor enable configuration for Adative forms core components

9 Replies

Avatar

Employee

Hi @varaande,

By default, only certain user groups might have access to the rule editor. You can configure which user groups have access to the rule editor by modifying the Adaptive Forms configuration service.
AEM Forms lets you limit rule editor access to users based on their role or function. In the Adaptive Forms Configuration Service settings, you can specify the user groups that can view and access the rule editor.

More details can be found in the documentation on: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/adaptive-forms-advanc...

Also, To enable JavaScript editing in the Rule Editor, ensure that the users who need to write scripts are added to the appropriate group with sufficient privileges. Users in the 'forms-power-users" group can create and edit scripts. Users added to the "forms-power-users" group can create the scripts and edit the existing ones. Users in the forms-users group can use the scripts but not create or edit the scripts.

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/adaptive-forms-core-c...

Thanks
Pranay

Avatar

Level 6

Thank you.

 

In My local AEM , login as admin  but core component-->rule editor no option to use the "code editor" only visual editor which difficult so not able write own java script code to perform some logic.

 

Regards

vara

Avatar

Employee

Hi @varaande,

By default admin user is also not part of the "forms-power-user" group. You will need to add the admin user to the "forms-power-user" group before accessing the rule editor.

 

Thanks

Pranay

Avatar

Level 6

I belive AEM Adative forms core components having this limitation i.e no code-editor option only visual code editor by default usig rule editor but foudation components having options i.e code-editor and visual editor

Avatar

Level 2

You can't edit is on rule editor using code editor, but you can create you own custom functions to write your logic and call the function from visual editor. 

Avatar

Level 6

Agree But "code-editor" option is enabled same as foundational or legacy component its very helpfull  to write custom js logic . currently code editor option not showing for core components but foundational component having both options.

Avatar

Moderator

@varaande, You can use custom functions for adaptive forms core components to add custom rules based on JavaScript.   

 

Avatar

Administrator

@varaande Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Level 2

Please check if you are having all of form related bundles active.