Force category entry
Posted: 28 December 2010 11:58 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  4
Joined  2010-12-15

I am creating forms to define parameters for channels, and I’d like for each form to have the category preselected. Is it possible to do that? Would I use a hidden field? Special coding? Any help’s appreciated, thanks.

Profile
 
 
Posted: 28 December 2010 07:48 PM   [ Ignore ]   [ # 1 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

Hidden fields should work.


{categories}
  <input type=“hidden” value=”{category_id}”  />
{/categories}

You can hardcode the value, or use the categories loop like I did above.

 Signature 
Profile
 
 
Posted: 30 December 2010 05:01 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  4
Joined  2010-12-15

When you say hardcode the value, do you mean like value=“8”, for example? That doesn’t select the category. I’m having trouble figuring what I’m missing.
Thanks.

Profile
 
 
Posted: 30 December 2010 06:18 AM   [ Ignore ]   [ # 3 ]
Wallflower
Rank
Total Posts:  4
Joined  2010-12-15

Never mind. Got it. wink

Profile