# I want to create a form that saves to a particular collection, how to do that?

**URL:** <https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [June 26, 2025, 3:19pm UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762 "2025-06-26T15:19:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smit\_Shah](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/smit_shah/32/108838_2.png) [@Smit\_Shah](https://forum.wixstudio.com/u/Smit_Shah)\
**Post date:** [June 26, 2025, 3:19pm UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762/1 "2025-06-26T15:19:03Z")

</div>

**Question:**  
I want to create a form that saves to a particular collection, how to do that?

**Product:**  
Wix Website Builder

**What are you trying to achieve:**  
I want the form to directly save to collection. I dont mind using Velo also.

**What have you already tried:**  
I have zero clue on the velo, hence no idea where to start.

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [June 27, 2025, 2:07am UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762/3 "2025-06-27T02:07:16Z")

</div>

Hi, @Smit_Shah !!

If your goal is simply to “save data to a specific collection,” then you can probably achieve it easily using a basic API like the one below. Rather than relying on Wix’s built-in concept of forms, you can just set up a text element and a submit button yourself—and that alone already functions as a form. From there, you only need to write some code so that when the button is clicked, the content of the text input is saved to a specific collection. That should be enough to get the core functionality working. 😙

The only other thing you might need is input validation to make sure the submitted content is in the correct format. I can’t say this with absolute certainty since I haven’t checked your specific setup, but even if you already have a pre-built form, it’s very likely that you can modify just the submit button to save data to your chosen collection. And even if you can’t reuse your existing form, creating everything from scratch as described above should still be enough to achieve what you need! 😇

> **[Save | Velo](https://dev.wix.com/docs/velo/apis/wix-data/save)**
>
> Inserts or updates an item in a collection. The save() function returns a Promise that resolves to the inserted or

or

> **[Save | Velo](https://dev.wix.com/docs/velo/velo-only-apis/$w/dataset/save)**
>
> Saves the current item. The save() function returns a Promise that is resolved to the saved item

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [June 27, 2025, 11:50am UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762/4 "2025-06-27T11:50:07Z")

</div>

In fact…

> [@onemoretime](#):
>
> From there, you only need to write some code so that when the button is clicked, the content of the text input is saved to a specific collection.

You don’t need to write any code at all, you can simply use a **dataset** and link the input fields to their respective columns in your CMS and your form is ready.

> [@Smit\_Shah](#):
>
> I have zero clue on the velo, hence no idea where to start.

You don’t need any Velo for this. Here’s a tutorial by the amazing @thewixwiz where you can learn how to create a custom form in just a few minutes!

[![](https://us1.discourse-cdn.com/wix/original/3X/a/f/afa9e14e03f9809d5adedcffdcf6964751558460.jpeg "How to Create a Custom Form on a Wix Website Tutorial") ](https://www.youtube.com/watch?v=KecEqxEyEOI)

---

<div class="post-metadata">

**Author:** ![Smit\_Shah](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/smit_shah/32/108838_2.png) [@Smit\_Shah](https://forum.wixstudio.com/u/Smit_Shah)\
**Post date:** [June 27, 2025, 5:44pm UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762/5 "2025-06-27T17:44:42Z")

</div>

Awesome. Thanks. Can I know the member email address ? So that It can be auto filled.. instead of me asking the member to rekey in ?

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [June 27, 2025, 6:36pm UTC](https://forum.wixstudio.com/t/i-want-to-create-a-form-that-saves-to-a-particular-collection-how-to-do-that/71762/6 "2025-06-27T18:36:26Z")

</div>

For that you will have to use some Velo.

Here’s a starting point. Tweak it to your requirements:

> [@Pre-populating Wix Logged in Member Details onto an embedded Jotform](https://forum.wixstudio.com/t/pre-populating-wix-logged-in-member-details-onto-an-embedded-jotform/69353/6):
>
> Velo code runs on your Wix site page, not inside embedded HTML iFrames. Hence you canot combine the two. Just simply follow these steps: Add the Embed a Site element on you members only page where you want this form to be. Then place your Jotform URL (https://form.jotform.com/250547430501851) in the website address field and click on Update. Now turn on Dev Mode (beside the Wix logo at the very top of the editor). You should see a code panel pop up below. Clear all the code inside…
