<p>This isn't possible with the build in FEEF functionality.</p>

<p>You can however achieve this via a Plugin. What you need to do is to listen to the <code>onBeforeSave</code> event and make an if-statement to check if the entry is being added to your section. Then you can run a loop that checks all the submitted categories against your database and adds new entries for the categories that doesn't exist and re-populates your <code>EntryModel</code> with the new category ID's before insertion.</p>

CC BY-SA 3.0
2016-01-25T13:01:33.687Z
2016-01-25T13:01:33.687Z
naboovalley
<p>I have searched the forum and cannot find the answer to my question.
I know how to populate a dropdown with the categories that are already in the system, but what happens if the category that needs to be assigned to the entry doesn't exist in the list of categories.</p>

<p>So, my question is this. Is there a way to display the dropdown of categories, as well as having the ability to add more categories via a form on the front-end?</p>

<p>Thanks</p>

CC BY-SA 3.0
2016-01-20T13:25:25.390Z
Are you using the build-in FEEF feature or doing it via a Plugin? I don't think you can do it with the standard feature but with some Plugin magic you could achieve what you are after.
naboovalley
CC BY-SA 3.0
2016-01-25T12:48:14.840Z
Built-in form FEEF.
Nicole Lambon
<entries><categories><form><field><fieldtypes>
Categories on a Front-end form
# Categories on a Front-end form

(Asked by: username_0 on 2016-01-20)

I have searched the forum and cannot find the answer to my question.
I know how to populate a dropdown with the categories that are already in the system, but what happens if the category that needs to be assigned to the entry doesn't exist in the list of categories.

So, my question is this. Is there a way to display the dropdown of categories, as well as having the ability to add more categories via a form on the front-end?

Thanks

**Tags:** entries, categories, form, field, fieldtypes

> **Comments:**
> **username_1**: Are you using the build-in FEEF feature or doing it via a Plugin? I don't think you can do it with the standard feature but with some Plugin magic you could achieve what you are after.  
> **username_0**: Built-in form FEEF.  

---

## 1 answers

### Answer by username_1 on 2016-01-25. Score: 1

This isn't possible with the build in FEEF functionality.

You can however achieve this via a Plugin. What you need to do is to listen to the `onBeforeSave` event and make an if-statement to check if the entry is being added to your section. Then you can run a loop that checks all the submitted categories against your database and adds new entries for the categories that doesn't exist and re-populates your `EntryModel` with the new category ID's before insertion.


---

