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! 😊