uploading data with rich text editor

Hi, I am having some issues with uploading info and editing my collection data with my forms.

  1. I hit save and the console says saving but nothing happens? All seem to be connected properly and has worked before. I am using a rich text editor to upload as well but all was ok. I have success and failure text but that doesn’t show up when I hit submit either.

My add property page:

https://pete092.wixsite.com/book-the-best/add-property

My code:
export function submit_onClick(event, $w) {
console.log(“saving”);
//Send a blank message to the HTML element. This tells the HTML
//element you want it to send you its contents
$w(“#html1”).postMessage(" “);
//Receive the message from the HTML element
$w(”#html1").onMessage((event) => {
//Set the value for the rich text field of the dataset’s
//current item to be the data in the HTML element
$w(“#dataset2”).setFieldValue(“longDescription”, event.data);
//Submit the current item of the dataset
$w(“#dataset2”).save()
.then((res) => {
console.log(“saving”, res);
$w(“#PropertyInfo”).value = null;
$w(“#Location”).selectedIndex = undefined;
$w(“#Type”).selectedIndex = undefined;
$w(“#Guests”).selectedIndex = undefined;
$w(“#Bedrooms”).selectedIndex = undefined;
$w(“#Bathrooms”).selectedIndex = undefined;
});
});
}

edit properties page is: https://pete092.wixsite.com/book-the-best/properties/edit/title

And submit code:

export function submit_onClick(event, $w) {
//Send a blank message to the HTML element. This tells the HTML
//element you want it to send you its contents
$w(“#html1”).postMessage(“save”);
//Receive the message from the HTML element
$w(“#html1”).onMessage((event) => {
//Set the value for the rich text field of the dataset’s
//current item to be the data in the HTML element
$w(“#dynamicDataset”).setFieldValue(“longDescription”, event.data);
//Submit the current item of the dataset
$w(“#dynamicDataset”).save()
.then((res) => {
$w(“#PropertyInfo”).value = null;
$w(“#Location”).selectedIndex = undefined;
$w(“#Type”).selectedIndex = undefined;
$w(“#Guests”).selectedIndex = undefined;
$w(“#Bedrooms”).selectedIndex = undefined;
$w(“#Bathrooms”).selectedIndex = undefined;
});
});
}
TIA!

Does it run in Preview Mode but not in Published mode?

neither :frowning:

could you post the html that you have inside the html-component?

<!doctype html>

Did anybody ever figure this out? I am having the same problem.