Page 1 of 1

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

Posted: Mon Jan 18, 2010 12:03 pm
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

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

Posted: Wed Jan 20, 2010 10:47 am
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