How to get checkbox friendly name

bmagne 25 Apr, 2012
Hi everybody,

I added a checkbox input_checkbox_group_expertise with multiple options in my chronoform. For example:

opt1=expertise 1
opt2=expertise 2
opt3=expertise 3
opt4=expertise 4
opt5=expertise 5


In the "On Submit Email Send" event, by default when I add {input_checkbox_group_expertise} in the "Template" tab, I got something like that in the email

Expertise
array (
  0 => 'opt1',
  1 => 'opt2',
  4 => 'opt5',
)


which is not friendly.

How can we do by adding some php code in the template in order to get something like that

'expertise 1' is checked
'expertise 2' is checked
'expertise 5' is checked


I have tried several method in order to use {input_checkbox_group_expertise} in php code but with not real result.

Any help/tip will be appreciated.
Max_admin 28 Apr, 2012
Hello,

You should use a "Handle arrays" action BEFORE the "Email" action, that should handle the array values for you (like the checkboxes groups).

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 28 Apr, 2012
Hi ersa_france.com,

I think the handle arrays is only part of the answser - please see this thread

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