ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unable to assign channel entry form to a specific category

December 19, 2014 11:36am

Subscribe [1]
  • #1 / Dec 19, 2014 11:36am

    CreativelinkUK

    16 posts

    Hi there

    We’re building a website which contains multiple pages. Each page contains it’s own entry form. All the forms are assigned to the same channel but we’re trying to make each form add their entries to a specific category. For example, imagine three of these pages/forms are titled ‘Cars’, ‘Buses’ and ‘Trucks’. Entries submitted using the form on the ‘Cars’ form would be added to a category called cars. Entries submitted using the ‘Buses’ form would go in to a category called buses, etc etc.

    The documentation only appears to demonstrate the creation of a drop down menu which the user then chooses a category from. We don’t want the user to have or even see an option for categories.

    Is there any code/script or hidden input we can use to achieve this? (like how you can have a hidden form input that can create the entry title). We’ve tried adding category=“1” in the {exp:channel:form} tag but this doesn’t work.

    Any help on this would be much appreciated. Many thanks in advance! 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases