Hi,
How can I show specific data depending on the value of some fields that are in the array.
So if [input_radio_25] => 2 keer, then I want to show different data Then when it concerns [input_radio_25] => 3 keer. Is this possible?
This is my array:
Thanks and regards.
Allie
How can I show specific data depending on the value of some fields that are in the array.
So if [input_radio_25] => 2 keer, then I want to show different data Then when it concerns [input_radio_25] => 3 keer. Is this possible?
This is my array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Inschrijven
[event] => Pager three
[cf_sid] => a79eb5253449c3f8ef7f5714289c1c71
[Itemid] =>
[input_radio_25] => 2 keer
[input_submit_27] => Verder
[6971712b88ce90f41db43b2d1e88c731] => 1
[voornaam] => Allie
[tussenvoegsel] =>
[achternaam] => Berg
[geboortedatum] => 2013201320132013-0303-0808
[geslacht] => Man
[straat] => Pxxxxxx
[huisnr] => 93
[input_text_11] =>
[postcode] =>xxxxxx
[woonplaats] => Leidschendam
[telefoon] => xxxxxx
[emailadres] => xxxxxxxx@gmail.com
[input_submit_16] => Verder
[input_text_20] =>
[input_submit_19] => Submit
)
Validation Errors:
Array
(
)
Thanks and regards.
Allie
Hi Allie,
You don't say what kind of 'different data' you want to show, or where to show it?
Please see this FAQ which may help.
Bob
You don't say what kind of 'different data' you want to show, or where to show it?
Please see this FAQ which may help.
Bob
Hi Greyhead,
Thanks. That's what I was looking for.
But it is not yet working:
My array data is:
Depending on the result I show two different Thank You messages, but I only see the first one when I return "succes". When it return "failed" I see nothing.
Regards,
Allie
Thanks. That's what I was looking for.
But it is not yet working:
<?php
switch ($form->data['woonplaats'])
{case 'Leidschendam':
return "success";
case 'LeidschendaS':
return "failed";
}
?>
My array data is:
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Inschrijven
[event] => Pager three
[cf_sid] => 749862a246dae135a72fea830bcbaf5b
[Itemid] =>
[input_radio_25] => 1 keer
[input_submit_27] => Verder
[b87e841345a839687f996d7435642a66] => 1
[voornaam] => Allie
[tussenvoegsel] =>
[achternaam] => Berg
[leeftijd] => 16
[geslacht] => Man
[straat] => Prinses Annalaan
[huisnr] => 93
[input_text_11] =>
[postcode] => 2263XB
[woonplaats] => LeidschendaS
[telefoon] => 123456789
[emailadres] => xxxxxx@gmail.com
[input_submit_16] => Verder
)
Depending on the result I show two different Thank You messages, but I only see the first one when I return "succes". When it return "failed" I see nothing.
Regards,
Allie
Hi maximus2579,
Where are you using this code?
I don't think that return "success"; or return "failed"; do anything :-(
Bob
Where are you using this code?
I don't think that return "success"; or return "failed"; do anything :-(
Bob
I am using it in the event switcher.
Hi maximus2579,
From the Help tab:
Bob
From the Help tab:
To trigger an event the code block should return one of the four values: 'event_a', 'event_b', 'event_c' and event_d'. That event will be enabled and any actions placed in the event will be run; actions in the other events will be ignored.
Bob
Thanks. Works like a charm.
This topic can be closed
This topic can be closed
This topic is locked and no more replies can be posted.