Page 1 of 1

Using radiobuttons as mailadres [solved]

Posted: Tue Sep 01, 2015 10:49 am
by babel
I'm using formbuilder 0.8.1 and cms ms 1.12.
The radio buttons are people who should receive a mail when a visitor chooses him or her. You can see what I mean: http://acgen.nodale.nl/index.php?page=formtest. Under Ambassadeur there are four names and behind each name should be a mailadres and not a value.
My knowledge of smarty is just about nothing.
If someone would be kind to find a solution would be wunderfull.

Re: Using radiobuttons as mailadres

Posted: Tue Sep 01, 2015 11:45 am
by velden
Then name the fields like you want them to be displayed on the front end. I just suspect that the email addresses are not available in the template. But I could be wrong.

It would need only a little smarty knowledge to find that out. Perhaps something like: {$field|print_r} inside some foreach loop in the Form template.

Re: Using radiobuttons as mailadres

Posted: Tue Sep 01, 2015 1:37 pm
by babel
Thanks for the reply, but I don't know how to make the foreach loop with smarty. So any help would be welcome. Because I also need the foreach loop for images.

Re: Using radiobuttons as mailadres

Posted: Wed Sep 02, 2015 8:43 am
by Jo Morg
babel wrote:Thanks for the reply, but I don't know how to make the foreach loop with smarty. So any help would be welcome. Because I also need the foreach loop for images.
http://www.smarty.net/docs/en/language. ... oreach.tpl