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
Views
Replies
Total Likes
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.
Thanks
Pranay
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
Views
Replies
Total Likes
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
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
@varaande, You can use custom functions for adaptive forms core components to add custom rules based on JavaScript.
Views
Replies
Total Likes
@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!
Views
Replies
Total Likes
Please check if you are having all of form related bundles active.
Views
Replies
Total Likes
Views
Likes
Replies