Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #918588

    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

    #919279

    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

    #919736

    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

    #919964

    Hi,

    Thank you for letting us know, we much appreiate.

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Access Modal Window from Custom Advanced Layout Builder Elements via Javascript’ is closed to new replies.