Formit - emailselect

Hi everyone,

I’ve just set up the emailselect option on our email form.

My question is… can the value of the &emailselect be inserted into the email chunk.

So to clarify if option 1 is selected from the example below ‘Address 1’ would be display in the email chunk.

<select name="emailselect">
    <option value="1" [[!+fi.emailselect:default=`1`:FormItIsSelected=`1`]]>Address 1</option>
    <option value="2" [[!+fi.emailselect:default=`1`:FormItIsSelected=`2`]]>Address 2</option>

Any help would be gratefully received!

Thanks all.

You should be able to use something like this in your email chunk.

[[+emailselect:is=`1`:then=`Address 1`]]
[[+emailselect:is=`2`:then=`Address 2`]]

Yes this is possible, these parameters are available in email, including &emailselect, just use
[[+emailselect:isequalto=`something`:then=`output 1`:else=`output 2`]]

Thanks, Guys! Super quick response.

Just for reference, Harry’s solution worked perfectly for me.

1 Like