I have a webflow form with many fields, and a particular field has a few checkboxes. So what I want to do is- whenever a user fills out the form and submits it, the values should be stored in a CMS. But if a user selects three checkboxes, I want those 3 values to be stored in the same field, separated by commas. But I am not able to find any way possible. Can anyone please help me?
Let me start by saying that there are very few cases where I’d ever want to store form results in the CMS, especially if it contains any form of personal user data.
But let’s assume you’ve considered that, and have very good reasons. Let’s further assume that you’ve built this and are using Logic or some 3rd party automation as the bridge between your form and the CMS.
The easiest way to achieve the “field merge” you’re wanting is probably this;
Create another input field in your form, which will store your CSV checkbox data, and name it
Write some JS, so that as checkboxes are changed, that you create your CSV string and update that field
Then update your Logic / automation so that the CSV field is the one actually stored in the CMS, and you can ignore the checkboxes
Once it’s tested and working, wrap your CSV input field in a DIV, and hide it from view, so that users can’t edit it or be confused by it