• Resolved jurvrn

    (@jurvrn)


    Quiero usar el código corto [event_form] en una ventana modal emergente.
    El formulario de adición de eventos funciona bien. Pero dado que la página se vuelve a cargar después de agregar el evento, la ventana emergente modal se cierra.
    Por lo tanto, no es posible ver los mensajes de error o entrada exitosa del evento.
    ?Cómo hago para que la ventana emergente modal no se cierre y muestre mensajes sobre el resultado de agregar un evento?

    I want to use a shortcode [event_form] in the pop-up modal window.
    Event adding form works well. But since the page is rebooted after adding an event – the modal pop-up window closes.
    Therefore, it is not possible to see the messages about the successful entry event or error.
    How to do so that the modal pop-up window does not close and messages appear on the result of adding an event?

    screenshot popup

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Did you already try the option under Events > Settings > General > Event Submission Forms > Show form again? =Yes

    Thread Starter jurvrn

    (@jurvrn)

    angelo_nwl (@angelo_nwl), yes I did.
    Please look a demonstration video – https://radikal.ru/video/qt5F0JEKLpm
    We see that after executing the code, the window closes and form does not report errors or the success of adding an event.

    Thread Starter jurvrn

    (@jurvrn)

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I see what you mean now, another way to prevent this is by changing some lines in the events-manager/em-actions.php lines 97-99 (although this is not recommended because this might produce future issue/bug)

    • This reply was modified 3 years, 5 months ago by angelo_nwl.
    Thread Starter jurvrn

    (@jurvrn)

    angelo_nwl (@angelo_nwl), can you tell me how changing some lines in the events-manager/em-actions.php lines 97-99 ?

    P.S. Maybe you could provide for the plugin to work in a pop-up window (via AJAX)? Embed this feature?

    I also have an idea to try to output form from page via iframe. Please give recommendations.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    P.S. Maybe you could provide for the plugin to work in a pop-up window (via AJAX)? Embed this feature?

    I will let the Devs know about this, maybe adding ajax=1 e.g. [event_form ajax=1] to prevent the page from reloading.

    Thread Starter jurvrn

    (@jurvrn)

    angelo_nwl (@angelo_nwl)

    I will let the Devs know about this, maybe adding ajax=1 e.g. [event_form ajax=1] to prevent the page from reloading.

    In my opinion, it matters not to reloading the page, but protection the popup window or another block from reloading in which the shortcode display the form.

    I will really wait for this solution. I still close the topic as resolved.

    Thread Starter jurvrn

    (@jurvrn)

    angelo_nwl (@angelo_nwl), If you do not refresh the page, you will need to ensure that the calendar shortcodes are updated (to display the newly entered event).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display “[event_form]” in popup’ is closed to new replies.