[SOLVED] FormBuilder - email templates and pulldowns/check box groups

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
zap12345
Forum Members
Forum Members
Posts: 20
Joined: Thu Nov 19, 2009 8:04 am

[SOLVED] FormBuilder - email templates and pulldowns/check box groups

Post by zap12345 »

Hi everyone,

I have what I think is probably a very easy question that I'm hoping someone may be able to answer for me...

I have a form which I've created, where almost everything is working nicely and I get a nice email sent to me when the form is submitted, c.f. copying the very useful email template from RJK in: http://forum.cmsmadesimple.org/index.ph ... .msg191611

BUT for pulldown and check box groups, I can't get the option(s) selected in the form included in the email which is sent when the form is submitted!  I assume that I need to modify the field name, $fld_42 somehow??  Maybe using something like: $fld_42->input??

Wish to enrol in:
{$fld_42}


Any hints much appreciated! :-)

Cheers,
Zaneta
Last edited by zap12345 on Wed Jan 20, 2010 10:48 am, edited 1 time in total.
zap12345
Forum Members
Forum Members
Posts: 20
Joined: Thu Nov 19, 2009 8:04 am

Re: FormBuilder - email templates and pulldowns/check box groups

Post by zap12345 »

Hooray - I've finally worked out where I was going wrong!!!

In case you ever have the same problem...

When you use either a Checkbox group or Pulldown in the FormBuilder module, as well as giving a name for each item in the Checkbox group/Pulldown, you need to also specifically state what value should be given if someone selects an item when filling in the form!  You do this by filling in the "Value when checked" field in the Checkbox group menu; or "Value submitted" field in the Pulldown menu.  

Once I did this, using the ordinary field name, e.g. {fld_42}, in my email template finally resulted in me obtaining the value which was selected when the form was submitted :-)

To help make this crystal clear, check out the fields which have been filled in for the "Modules you'll be using together" field in the "sample_form" which comes with the FormBuilder module...

Cheers,
Zaneta
Last edited by zap12345 on Wed Jan 20, 2010 10:49 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”