Hello,
I am creating multiple forms which has radio button field which are common for all of them.
How can I inject a radio button component into each form container to avoid recreating the same component for every new form.
I have asked related question here but still didnt get currect solution
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @margaritageg
You need to use cq:template node to initialise component with default values/children component
Hi @margaritageg
You need to use cq:template node to initialise component with default values/children component
This solution is excellent, but I have another question. When I created a container for the first time, it worked perfectly. However, when I had already created some container components, the radio buttons didn't add automatically. Should I write Groovy, or is there another solution
Yes you can write the groovy script as the cq:template adds the initial structure while we add the component to the page
Views
Likes
Replies