# Form submit button only works in wix preview, not online

**URL:** <https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [November 9, 2017, 9:00am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241 "2017-11-09T09:00:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 9:00am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/1 "2017-11-09T09:00:04Z")

</div>

I have built a simple form to take inputs from clients. I have published it and tried to test it online.  
It works in preview mode inside wix, but does not seem to work on wider internet. Website is still in free wix mode. Could this be something that only works in premium ?.

Any advise will be helpful

ps. I intend to do go premium after testing the full functionality of the website, which is meant to go live shortly.

---

<div class="post-metadata">

**Author:** ![sam-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam-wix/32/683_2.png) [@sam-wix](https://forum.wixstudio.com/u/sam-wix)\
**Post date:** [November 9, 2017, 9:04am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/2 "2017-11-09T09:04:17Z")

</div>

This usually occurs when the collection permissions are not set properly.

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 9:06am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/3 "2017-11-09T09:06:13Z")

</div>

how to address this ?

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 9:08am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/4 "2017-11-09T09:08:09Z")

</div>

presently set for anyone to write to database at present

---

<div class="post-metadata">

**Author:** ![sam-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam-wix/32/683_2.png) [@sam-wix](https://forum.wixstudio.com/u/sam-wix)\
**Post date:** [November 9, 2017, 9:10am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/5 "2017-11-09T09:10:05Z")

</div>

Another thing to remember is that from you live site the information that is submitted will show up in your live database collection and not in the sandbox collection. Have you checked the live collection?

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 9:11am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/6 "2017-11-09T09:11:27Z")

</div>

will do so now…

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 9:22am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/7 "2017-11-09T09:22:25Z")

</div>

Live Database collection seems empty… (Checked with the Dashboard / wix databases)

Also, submit button on the page is meant to redirect to a thank you page. It Just stays there doing nothing. I have tested in different browsers, same result.

The irony is that these submit button does redirect in preview mode inside wix, though nothing seems recorded in database

[https://rzglondon7.wixsite.com/angels-place/get-started](https://rzglondon7.wixsite.com/angels-place/get-started)

---

<div class="post-metadata">

**Author:** ![tomer-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tomer-wix/32/676_2.png) [@tomer-wix](https://forum.wixstudio.com/u/tomer-wix)\
**Post date:** [November 9, 2017, 9:49am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/8 "2017-11-09T09:49:23Z")

</div>

Hi,  
I tried to submit, and according to the error in the browser console, the collection does not have write permissions.  
Can you check again? After you set the correct write permissions, don’t forget to publish the site for it to take effect.  
Thanks!

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 10:46am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/9 "2017-11-09T10:46:31Z")

</div>

Permissions are properly set to write only…still not working or communicating with database.  
In preview mode, it progresses to Thank you page, but does not store anything in database. This is happening for both forms on the site.

Also I don’t seem to have certain developer features e.g. site structure sidebar, no option to delete database etc, even though i have received an email confirming my acceptance for wix code beta, after applying to join. How do i get wix to recognize my login as an approved wix code beta user?

Need help with these wix issues as its taking so much time to do simple things…

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 10:51am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/10 "2017-11-09T10:51:09Z")

</div>

and yes… developer tools are turned on

---

<div class="post-metadata">

**Author:** ![tomer-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tomer-wix/32/676_2.png) [@tomer-wix](https://forum.wixstudio.com/u/tomer-wix)\
**Post date:** [November 9, 2017, 11:31am UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/11 "2017-11-09T11:31:37Z")

</div>

Hi, I just checked your site and the permissions for the collection set to read only:

 ![](https://us1.discourse-cdn.com/wix/original/3X/d/a/da08656fd6c2c4e4e4470987ddccbc4d6749cb2d.png)

You can read more about collection permissions here:

> **[CMS: Collection Permissions Overview | Help Center | Wix.com](https://support.wix.com/en/article/cms-collection-permissions-overview)**
>
> Before you begin:You may want to read about your collection fields before reading this article. For a more specific guide, you can read changing your collection

[https://support.wix.com/en/article/how-to-set-permissions-for-a-database-collection](https://support.wix.com/en/article/how-to-set-permissions-for-a-database-collection)

There is currently no option to delete a collection, so it’s not just you 🙂  
Regarding the side bar, was it always missing, or was it available at some point?

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 12:27pm UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/12 "2017-11-09T12:27:44Z")

</div>

sidebar has never been available. I have tried to follow the examples from wix to find it but i don’t have it, except i am missing something !

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 12:58pm UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/13 "2017-11-09T12:58:14Z")

</div>

Thanks for your efforts so far Tomer.

From the wix help pages i am being directed to update collections permissions settings through the **site structure sidebar** which i do not seem to have access to.

I only seem to be able to edit the dataset settings, and i had done this previously by setting the Mode to “write only” for the Clients\_Contact dataset.

---

<div class="post-metadata">

**Author:** ![rzg-london](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rzg-london](https://forum.wixstudio.com/u/rzg-london)\
**Post date:** [November 9, 2017, 1:11pm UTC](https://forum.wixstudio.com/t/form-submit-button-only-works-in-wix-preview-not-online/40241/14 "2017-11-09T13:11:49Z")

</div>

Problem solved…  
the side bar came on after i turned on and off the developer tools a couple of times, loged off completely and logged on again…

I will try the above changes and report back thanks. Getting there 🙂
