Data source items drag and drop to custom components | Community
Skip to main content
IainClucas
New Participant
November 17, 2022
Question

Data source items drag and drop to custom components

  • November 17, 2022
  • 1 reply
  • 848 views

We have built a set of custom Form components that have superResourceTypes of core guide components. 

 

We also have some xdp files that we are using to define the data model. 

 

From the editor left hand panel (Data Sources selected) we would like to be able to drag an item onto the form and for the editor to insert one of our custom components rather than the standard set. For example rather than 

/libs/fd/af/components/guideradiobutton in inserts /apps/ourapp/forms/components/radiobutton

 

I was hoping to find a mapping definition but I cannot find one.

 

Has anyone done something similar?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Mayank_Gandhi
Employee
November 17, 2022

@iainclucas Creating custom components and dragging them to the form, Yes, perfectly fine and supported but be careful on how you would handle the data prefill, properties and submit using OOTB actions, to bring custom components in the same component group as forms add componentGroup as Adaptive Form

 

 

IainClucas
New Participant
November 17, 2022

 

All the components we have built are basically slight changes to the core ones, we really only make changes to the widget.jsp file to change the html and add some client specific css classnames. We also have some XSD files that have been created in AEM Designer and we use these as a form data model. Ideally we would like to be able to drag from the data section and create a entry for one of our components rather than the core ones. 

 

Mayank_Gandhi
Employee
November 17, 2022

@iainclucas so what's the issue here, is it dragging of schema to the fields?