Expand my Community achievements bar.

AEM Forms (OSGI Forms ,add-on AEM 6.5.21-OnPremises ) -Custom Form Core Components Developmet with rule editor script.

Avatar

Level 5

Hi Team,

We are currently developing custom Core Form components using Adaptive Form Core Components. However, when we copy the fd:rules and fd:events nodes to enable rules, they are not working as expected.

Issue Details:

  • Copied fd:rules and fd:events nodes from Core Components.
  • Unable to get the rules working in custom Core Form components.
  • Need to add built-in JavaScript functions but facing issues.


here is rule working as excepted  

 

varaande_2-1741060154811.png

copied fd:rules ,fd:events or properties copied to custom core component but not working 

varaande_3-1741060184515.png

 

 

 

 

 

1 Reply

Avatar

Employee

@varaandeThere's no need to copy fd:rules or fd:events for custom components unless your component includes default rules (which is part of cq:template) These are automatically generated when rules are created using the Rule Editor.

You can refer to a working example of a custom Core Component here: https://github.com/adobe/aem-core-forms-components/pull/1179