Hi, i want to modify a Modal Window of an Custom Advanced Layout Builder Element.
I like to put content, which is generated out of a value of a select-menu, in a hidden formfield, so i can update the editor-Element with this content.
Example: select-menu gives value “123”. A DB-Query (term_description() ) throws a string. i want to place this string to the Editor Element.
I tried via javascript, but i can’t access the HTML Elements in this Modal-Window. They are generated after DOM is ready, i think, so i can’t initialize.
Greetings, Gerhard
Hey scherar,
There is no easy way to do that.
It might be able if you generate a shortcode that is loaded inside the modal, and you get those info from the functions.php with some AJAX.
Best regards,
Basilis
ok. i created some hidden formfields with the related content and fill the expected field “onchange” via jquery from the related hidden field… not really the best way, i know. but for now it works as an quick & dirty solution. thanks
Hi,
Thank you for letting us know, we much appreiate.
Best regards,
Basilis