Hei, try to get this to go. It's a Checkboxarea and I will it userfriendly. The values in 'lordag' are there. But if I try this:
is the part that dosn't work. If I take my code and read an given array insted of form->data['lordag'], it works fine...😑
Gives me no result. Is there someone who can help me??
$form->data['input_name']is the part that dosn't work. If I take my code and read an given array insted of form->data['lordag'], it works fine...😑
$lordag_array = array(
'choice 1' => 'Kantine skole',
'choice 2' => 'Kantine H.H',
'choice 3' => 'Brannvakt',
'choice 4' => 'Løypevakt',
'choice 5' => 'Parkering',
'choice 6' => 'Premieutdeling/Sosialarrangement',
'choice 7' => 'Innkvartering',
'choice 8' => 'Sekreteriat'
);
;
$lordag_array_long = array();
foreach($form->data['lordag'] AS $choice)
{
$lordag_array_long[] = $lordag_array[$choice];
echo $choice.'<br>';
}Gives me no result. Is there someone who can help me??
Hi tagsmas,
I'm sorry I don't understand what you are asking :-(
Where is this code and what exactly isn't working?
Bob
I'm sorry I don't understand what you are asking :-(
Where is this code and what exactly isn't working?
Bob
Hi tagsmas,
Thanks for the form backup. I moved the code out of the Email Template and into a separate Custom Code action before the DB Save and Email actions. The only problem that I can see is that the first option is mistyped in the element as 'chioce' instead of choice. With that corrected the form works OK:
Thanks for the form backup. I moved the code out of the Email Template and into a separate Custom Code action before the DB Save and Email actions. The only problem that I can see is that the first option is mistyped in the element as 'chioce' instead of choice. With that corrected the form works OK:
. . .
[lordag] => chioce 1,choice 2,choice 3,choice 4,choice 5,choice 6,choice 7,choice 8
[input_checkbox_group_4] => Array
(
[0] => choice 1
[1] => choice 2
[2] => choice 3
[3] => choice 4
[4] => choice 5
)
[input_textarea_8] => input_textarea_8
[input_submit_9] => Submit
[f47be40836e8c53738785759d3d278ae] => 1
[lordag_long] =>
Kantine H.H
Brannvakt
Løypevakt
Parkering
Premieutdeling/Sosialarrangement
Innkvartering
Sekreteriat
[id] =>
. . .
Hei, I tried to do it but got no result with ['lordag_long']. I give up. I can't figure out what you did. Took the code into an coustom html. Changed chioce (sorry for that) into choice. The only result ist the value in ['lordag'] and that's 'choice 2' (for example) not 'Kantine H H'. How does the system know that ther's a new array ['lordag_long']? '
Greetings Peter
Greetings Peter
Hi Tagsmas,
Just to check I put the code into a Custom Code action (I'm not sure what a Custom HTML is?)
Exactly what code do you have where?
Bob
Just to check I put the code into a Custom Code action (I'm not sure what a Custom HTML is?)
Exactly what code do you have where?
Bob
Hei, I wrote a long text but had to revise it.
I have to thank you so much. I was so blind to find the right place to do it. It coudn't be easyer. It was just to write Kantine skole=Kantine skole in the checkboxes group. I'm so ashamed that it takes me so long to find it.
Greetings Peter
I have to thank you so much. I was so blind to find the right place to do it. It coudn't be easyer. It was just to write Kantine skole=Kantine skole in the checkboxes group. I'm so ashamed that it takes me so long to find it.
Greetings Peter
This topic is locked and no more replies can be posted.
