Using radiobuttons as mailadres [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Using radiobuttons as mailadres [solved]

Post 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.
Last edited by babel on Thu Oct 22, 2015 7:32 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Using radiobuttons as mailadres

Post 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.
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Using radiobuttons as mailadres

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Using radiobuttons as mailadres

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”