so i implemented the code exactly as i was shown in the forum and it works everything works BUT only in preview. it does not work in the published site..... my search code that used to be working does not work in the published site... !!!
Thanks in advance for the help!:-)
This is an old post from 2017 and being closed.
Please add a new forum post and refer back to this post with a link if needed.
For datasets make sure that you are using the right mode and permissions as shown here.
https://support.wix.com/en/article/about-collection-permissions
https://support.wix.com/en/article/working-with-dataset-modes-and-collection-permissions
So don't use site content when you are using a user input form submission...
https://support.wix.com/en/article/creating-a-form-with-user-input-elements
Also, in editor and preview you are working in sandbox mode, whereas in your published site you are working in the live mode, so you need to make sure that your datasets are synced.
https://support.wix.com/en/article/syncing-data-between-sandbox-and-live-database-collections
My site is webbtechonline.wix.com/learn
When i complete the form on the site on the live pace, it shows an error. However, it works fine in preview mode.
1. The dataset for the form is on write only.
2. The elements of the form is connected appropriately.
3. I tried a PDF file and a Word document and the same error apprears.
4. I tried different browsers and faces the same issue.
Note: There is a code on the upload page.
PLZ HELP!!!
Was facing similar issue. Syncing Sandbox with Live resolved this problem in my case
I am having the same issue with an animated header changes from transparent to white as the user scrolls down the page. Works perfectly on preview. Nothing on live. Here is the url. https://hix0218.wixsite.com/efinitymortgage
Hi, I have a similar issue, I checked the below setting
1. Synced data to the live site.
2. Dataset mode to "Read Only"
3. collection permission is " Form Submission"
my site url is https://sujite2e.wixsite.com/performance-review
need your assistance.
Dear Sir. I am having the same problem sir. I have done everything possible as you suggested above. Please advise. The site is www.mathsacad99.com
I have a similar issue. I updated my website, saved and published. In preview mode looks corrected and updated. However in published mode I still have previous information. Any help?
I am having the same issue. All of the sudden one of my pages is not connecting to the database. I have tried the following and nothing is working.
1. Making sure that you've synced that data to the live site.
2. Changing the dataset mode to "Read Only"
3. Checking the collection permissions.
My site is charlottehayniehealth.com and the page is the Recipes page.
Hello,
My 'preview' turns my input box and submit button grey, so no way to test it. What is wrong with my settings? thanks.
https://editor.wix.com/html/editor/web/renderer/edit/bc121f34-8806-4cc9-91f1-92b86327957a?metaSiteId=f9c7596f-852e-4111-b2ac-dc5685a2e6c1&editorSessionId=f9becf1f-7183-43bb-8a1b-4a3db6156ce7&referralInfo=dashboard
Hi, please I also have the same issue with repeater not showing in live site and I have done all these but it's not working:
In order to check what is the issue, I recommend the following:
1. Making sure that you've synced that data to the live site.
2. Changing the dataset mode to "Read Only"
3. Checking the collection permissions.
my site url is https://elliosedgeservice.wixsite.com/mysite
Hi, my site has issues on preview mode. After laying the widgets on the editor, only a single strip appears on the preview. My site url is https://simonwambua433.wixsite.com/apraorg
Hello, I am having same issue, I have wix code setup to email on submission, the email sends in preview mode but not on published site. I have DB set to read only and permissions set to anyone. Please help.
//email on submission
import {sendEmail, sendEmailWithRecipient} from 'backend/email';
$w.onReady(function () {
$w("#dataset1").onAfterSave(sendFormData);
});
function sendFormData() {
const subject = `Thank you for registering with GameChangerz University`;
const body = `https://drive.google.com/open?id=1KpushXasCuZCCYRyCayFqK0tgi4NqVyd
`;
const recipient = $w("#input9").value;
sendEmailWithRecipient(subject, body, recipient)
.then(response => console.log(response));
sendEmail(subject, body)
.then(response => console.log(response));
}
*EDIT* - It's working. All data was going into live dataset, not sandbox.
I am having this issue as well on https://maxexpress.wixsite.com/heatherwood/directory
Data input through preview loads to database fine. When it's submitted from live site, it says successfully submitted but never shows up in database.
I did have database permissions set to members only, since this is in a members section. I tried changing to anyone to see if that fixed it, and it hasn't.
Any other suggestions?
Hey geovelx,
In order to check what is the issue, I recommend the following:
1. Making sure that you've synced that data to the live site.
2. Changing the dataset mode to "Read Only"
3. Checking the collection permissions.
Should the issue persists, please send us the page name and screenshots of the issue.
Tal.
Hi Good Day, I have the same problem, everything works in preview mode but not in published site. Here is the URL --> https://evanrjenkins.wixsite.com/dogservice, scroll down to see the form.
Hi Tal,
THANK YOU SO MUCH! its working now all is good! thank you! :-)
by any chance do you know how to solve this too?
https://www.wix.com/code/home/forum/questions-answers/approval-for-form-inputs-made-by-users
Hi,
I checked your permissions and noticed that
I checked your console error and saw the following message:
Uncaught (in promise) Error: The current user does not have permissions to read on the staff collection.
Note that only a site member can view the collection's information:
https://support.wix.com/en/article/about-database-collection-permissions
If you wish that all site visitors can view the info, you should change the first dropdown from "Site member" to "Anyone".
Good luck,
Tal.
Hi Tal,
Thank you so much for the feedback! after i made changes to the dataset and checked that all my items where synced to live site it still does not work... is there anything else im missing?
Hi,
I noticed that the mode of the dataset is Read&Write. Please change it to Read Only. Click here to learn more about Working with Dataset Modes and Collection Permissions. Moreover, please make sure that you've synced the data to the live site.
Have a good day,
Tal.
the search code does not work