Delete event of Multifield aem 6.5 | Community
Skip to main content
Level 3
September 26, 2022
Solved

Delete event of Multifield aem 6.5

  • September 26, 2022
  • 1 reply
  • 1018 views

Hi All,

I have a requirement that i have to capture multifield add and delete them and make ajax call after modification and capture fields. i am using a ajax call inside dialog-success function. It is working fine for adding multifields, but failing for delete. Whenever i delete any entry and save the dialog, it captures deleted entry too. It looks like node structure is not getting updated after delete operation.

 

Any help is appreciated.

 

Thanks,

 

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

dailog-ready should be work in this case. 

Refer below code for reference

$document.on("dialog-ready", function () { var $myMultifield = $("#multifie_ld"); $myMultifield.on("coral-collection:remove", function (event) { var $removedItem = $(event.item); your_ajaxCall(); }); });

 

1 reply

Nilesh_Mali
Nilesh_MaliAccepted solution
Level 3
August 1, 2023

dailog-ready should be work in this case. 

Refer below code for reference

$document.on("dialog-ready", function () { var $myMultifield = $("#multifie_ld"); $myMultifield.on("coral-collection:remove", function (event) { var $removedItem = $(event.item); your_ajaxCall(); }); });