Re-initialize the dialog with the saved value after population of dropdown in multifield | Community
Skip to main content
Level 2
September 8, 2020
Solved

Re-initialize the dialog with the saved value after population of dropdown in multifield

  • September 8, 2020
  • 1 reply
  • 999 views

I am having the multifield in which the saved values of the dialog should came as selected post the dropdown values are populated dynamically.

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 Surabhi_Katiyar

For this requirement you can add a stTimeout handler with the timeout as per your requirment and re-initialize the dialog request to populate the saved values once the dynamic population of the drop down is complete.

You can use the below sample code:


setTimeout(function() {
$.ajax(Granite.author.DialogFrame.currentDialog.editable.path + ".infinity.json").done(handler);
}, 1000);
function handler(data) {
if any processing needs to be done, can be added here
});
}

1 reply

Surabhi_Katiyar
Adobe Employee
Surabhi_KatiyarAdobe EmployeeAccepted solution
Adobe Employee
September 8, 2020

For this requirement you can add a stTimeout handler with the timeout as per your requirment and re-initialize the dialog request to populate the saved values once the dynamic population of the drop down is complete.

You can use the below sample code:


setTimeout(function() {
$.ajax(Granite.author.DialogFrame.currentDialog.editable.path + ".infinity.json").done(handler);
}, 1000);
function handler(data) {
if any processing needs to be done, can be added here
});
}