Integration: Entry Element: Field Mapping: Is it possible to "add" category ID's to an existing field with Categories? #1943
Replies: 1 comment 2 replies
-
I'm afraid not, and this more or less comes down to how Craft handles field values for element fields. It expects you to define all the elements to be included in the elements field. We'd have to introduce settings for element fields in the mapping process to configure this, but we don't have a UI planned for that, despite some other changes planned. You'd have to either populate the the Formie field you're mapping to your Categories field with all the categories you want, or use an event to hook into the save event of the Category via the integration, and grab any existing categories on that field (if an existing category was found) and include their IDs in with the new data coming in Formie. |
Beta Was this translation helpful? Give feedback.
-
I have an entry type called "Member".
On the Member, I have a field for "Awards". It's a category field that allows members to be "tagged" with multiple awards.
I have a Formie form with the Entry Element integration enabled and fields mapped to the fields on my "Member" entry type.
However, on the Formie form I have a dropdown list of awards that people can apply for.
What I'd like to do is allow people to submit the form, and if they selected to add an award to their Member profile, Formie would add it.
However right now, even though I have selected "Update Entry" as the method for Field Mapping, I notice that Formie overwrites the "awards" field, replacing all the awards on the field with the one award from the Formie form.
Is there a way to tell Formie to add the category, and leave any existing categories in place on the target elements?
Beta Was this translation helpful? Give feedback.
All reactions