Hello
I have following situation:
Using a form “addresses” users can store two addresses: private and business.
A dropdown menu allows them to define what address will be the main address.
In database table chrono_chronoforms_data_form-demo I have columns
user_id
phone_ private
phone_business
city_private
city_business
main_address
Field main_address contains either value 1 or 2.
Value 1 = main address is phone_private and city_private
Value 2 = main address is phone_business and city_business
On front page I have another form called “subscription”. It contains two textfields:
phone
city
Now the user logs in and opens this form.
Depending on if the database field “main_address” contains 1 or 2, the form should automatically load the correct phone number and city.
My approach is as follows:
Add a read_data action and receive value of field main_address.
In the “found” section I add action “Events switcher”.
I add events 1 and 2.
In event 1 I add a read_data to get value of field phone_private and city_private.
In event 2 I add a read_data to get value of field phone_business and city_business.
The debugger gives me this:

Now the problem I have: Even if value 1 is read from main_address, CF does not execute the action in “event 1”. No matter if I add a read_data, a custom code or a debugger. Nothing happens.
What goes wrong here?
Thanks.
Patrick
I have following situation:
Using a form “addresses” users can store two addresses: private and business.
A dropdown menu allows them to define what address will be the main address.
In database table chrono_chronoforms_data_form-demo I have columns
user_id
phone_ private
phone_business
city_private
city_business
main_address
Field main_address contains either value 1 or 2.
Value 1 = main address is phone_private and city_private
Value 2 = main address is phone_business and city_business
On front page I have another form called “subscription”. It contains two textfields:
phone
city
Now the user logs in and opens this form.
Depending on if the database field “main_address” contains 1 or 2, the form should automatically load the correct phone number and city.
My approach is as follows:
Add a read_data action and receive value of field main_address.
In the “found” section I add action “Events switcher”.
I add events 1 and 2.
In event 1 I add a read_data to get value of field phone_private and city_private.
In event 2 I add a read_data to get value of field phone_business and city_business.
The debugger gives me this:
Array ( [read_data1] => Array ( [log] => Array ( [0] => SELECT `Address1`.`main_address` AS `Address1.main_address` FROM `chrono_chronoforms_data_form-demo` AS `Address1` WHERE `Address1`.`user_id` = '610' LIMIT 100; ) [var] => Array ( [Address1] => Array ( [main_address] => 1 ) ) ) )

Now the problem I have: Even if value 1 is read from main_address, CF does not execute the action in “event 1”. No matter if I add a read_data, a custom code or a debugger. Nothing happens.
What goes wrong here?
Thanks.
Patrick