Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Runtime Multifield - Add Button Click doesn't work on 6.4

Avatar

Level 1

In AEM 6.2, I have created a multifield that populates the fields on the dialog based on the drop down selection. The listener javascript looks like

On the dialog load

var TITLE = './title',

cMultiField = $dialog.find('coral-Multifield');

$cAdd = cMultiField.find('.coral3-Button--secondary');

Method on selecting the drop down,

cMultiField.find('.coral3-Multifield-remove').click();

The following code is under a loop, that create n number of fields based on the drop down selection.

$cAdd.click();

$titleSelector = cMultiField.find('[name="' + TITLE + '"]:last');
$titleSelector.val("Title1")
;

The methods used for dialog load & dropdown change are calling properly. But the add button click is not creating the dynamic multifield on the fly. I have tried mousedown() method for the $cAdd and it didn't work either.

Can someone have the solution for this???

0 Replies