Connection → Form → Submit problem

Execute form submit actions when using a CF connection link.

Overview

The form's submit button was pointing back to the connection event instead of triggering the form's own submit actions, causing data loss.
Add a redirect action in the initial connection event to load the form, which allows the form to read data and process its own submit actions correctly.

Ax Axel Richter 08 May, 2019
Hi all,

I have a connection and use a link to point to an event which reads a single row and switches to chronoform:
Connection → Form → Submit problem image 1
Connection → Form → Submit problem image 2

The form is displayed ok, but when I use a "submit" button,
Connection → Form → Submit problem image 3
not the action in "submit" is executed, it just returns to the connection event "submit", but without any data.

Is there a way to run through the "submit" actions of the form first?
Connection → Form → Submit problem image 4

Thank you in advance,
Axel.
he healyhatman 09 May, 2019
If you have a look at the form tag (right click, inspect) where is the "action" URL pointing?
Ax Axel Richter 09 May, 2019
Hi healyhatman,

the action points to
action="/index.php/de/service-2/reserve-your-opportunity?conn=reservationlist&reservation_id=77&event=submit" 
method="post"
…which is the connection - exactly what the browser does. Unfortunately when I create a "submit" event in my connection and assign a debugger to it, no data arrives.

Update: maybe the problem is the surrounding form (reservierung_edit_form) which has "submit" as submit event.

Thanks for any clue…
Axel.
Ax Axel Richter 09 May, 2019
Answer
Hi all,

thank you for reading - I solved it using a "redirect" in my event:
Connection → Form → Submit problem image 5
…and this points to the link and transmits the id:
Connection → Form → Submit problem image 6

The form does a 'Read Data' and fills the values. Then the "submit" works as expected.

Axel.
This topic is locked and no more replies can be posted.