I’m guessing the answer to this is, no, but does anyone know if it’s possible to put exp:weblog:entries inside the Solspace Freeform tags. I’m looking to populate <option> tags with titles from weblog entries. If not possible, can anyone recommend an approach that might deliver the same results?
Thanks!
I need to do roughly the same thing - build a form based on weblog entries.
I’ve tried it with Freeform, and no it didn’t work. I didn’t try the query module however.
The only thing I don’t know is what happens in FreeForm if you don’t have the fields defined first. In my case the fields will be made up on the fly.
Phil, I did something similar recently and it worked quite well. I wanted to populate multiple radio buttons in a FreeForm based on fields in a weblog entry. Although I wrapped the freeform tag inside the weblog entries tag, not the other way around. It worked well.
You can see it in action here: www.newconsumer.com/competitions/item/win_a_pairs_of_recycled_trainers/
Just FYI - I ended up using the weblog module with FormMail and was successful - although having a variable fieldset restricted the ability to easily do some nicer things within FormMail - like results templates for email formatting.
Phil, I did something similar recently and it worked quite well. I wanted to populate multiple radio buttons in a FreeForm based on fields in a weblog entry. Although I wrapped the freeform tag inside the weblog entries tag, not the other way around. It worked well. You can see it in action here: www.newconsumer.com/competitions/item/win_a_pairs_of_recycled_trainers/
Those groovy shoes are so distracting. I spent way too much time looking at them this morning.
I was trying to populate a category list - and I had the categories tag within freeform tags. Don’t think it could have been done the other way. Turned out both the query module and the categories tag worked within the contact form. Sometimes simple works best. But it’s good to know that it works with freeform on the inside.
I accomplished this by using an embedded template.
Freeform template dropdown
<select id="industry" name="industry">
{embed="industry_list"}
</select>
Embedded page (industry_list)
{exp:query sql="SELECT id, name FROM exp_my_industries ORDER BY name"}
<option value="{id}">{name}</option>
{/exp:query}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.