We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Weblog tags inside Freeform?

Development and Programming

spcejunk's avatar
spcejunk
27 posts
18 years ago
spcejunk's avatar spcejunk

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!

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
18 years ago
Sue Crocker's avatar Sue Crocker

I haven’t tried it, but why wouldn’t it work? I’d use the query module instead, though.

       
Boyink!'s avatar
Boyink!
5,011 posts
18 years ago
Boyink!'s avatar Boyink!

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.

       
ruraldreams's avatar
ruraldreams
279 posts
18 years ago
ruraldreams's avatar ruraldreams

I’m having no luck with the weblog module or the query module.

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
18 years ago
Jamie Pittock's avatar Jamie Pittock

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/

       
Boyink!'s avatar
Boyink!
5,011 posts
18 years ago
Boyink!'s avatar Boyink!

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.

       
ruraldreams's avatar
ruraldreams
279 posts
18 years ago
ruraldreams's avatar ruraldreams
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.

       
pillet's avatar
pillet
2 posts
about 18 years ago
pillet's avatar pillet

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}
       
ruraldreams's avatar
ruraldreams
279 posts
about 18 years ago
ruraldreams's avatar ruraldreams

ah! I never think of embedding things. Thanks for posting that.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.