Open the event "edit" in a popup or modal?

Open a ChronoForms event edit action in a popup with the correct record.

Overview

The issue occurs when using a Task button to open a form in a popup, as it may not pass the correct record ID to the form.
Instead of a Task button, create a standard link element within the edit event. Set the target to 'Parent' and add a 'modal' class to trigger the popup while correctly passing the record ID via the URL.

Answered
Connectivity v6
Fr Fredolino 26 Jul, 2019
Hello,

I wanted to ask if I could open the event "edit" in a popup or modal window.
I tried it with a task button:
URL: article_id = {var: beob_list.row.Fund.beof_id}
Open a popup? yes
Popup content: {view: beob_form}
The form pops up, but it's not the record I want to edit.

This is also true if I copy the content from the edit event to the popup content.

If I remove the hook on Open a Popup, then I come to the edit event with the correct record.
he healyhatman 27 Jul, 2019
What does the debug of the popped up form say, maybe you're not getting the right thing?
Fr Fredolino 27 Jul, 2019
Answer
No idea why it works now… :-) ...only Task button have a problem...

Event: edit
Element "Link"
URL: article_id={var:beob_list.row.Fund.beof_id}
Target: Parent
Class: modal
This topic is locked and no more replies can be posted.