Having trouble in submitting form: Data validation error

Hello! I seem to have a repetitive error, based on form submission. I am getting and error as stated below:

 save operation failed: DatasetError: Some of the elements validation failed 

A brief overview of my components revolving in the problem:

  1. Dev Console window:

  1. Database:

A little help is really needed here.
Thanks
Sumukh

First thing, if an input field is set to “email” you actually have to write an email “test@test.com” is my go to :wink:
phonenumber have to be a phone number etc.

Hey Claes Nielsen

I did try your logic for emails to URL, but I am getting the same error.

Firstly, email will be a text field in your dataset.
https://support.wix.com/en/article/about-your-database-collection-fields

It would only be URL field if it is a web address or preceded by mailto or sms.
https://support.wix.com/en/article/field-type-support-and-limitations-in-the-data-manager

The same with telephone which has to be number field and date needs to be date and time field etc.

Any issues still then paste your code used here.

Also, if it is just a submit form why are you using onitemvalueschanged as depending on where it is used, it will be running an event handler when used?

Plus, have you read the Wix Dataset API Reference for that function too?
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#onItemValuesChanged

Hey @givemeawhisky

I had already tried the text field for Email. But after looking through the logs, I feel that the date field is not getting validated to the input.
Also I am not aware about the onitemvalueschanged because i haven’t used Wix before. Please shed some light on it.

Also i haven’t added any code into the page

@sumukhv

Okay, so you have not used any code on your page, so you shouldn’t really be asking for help through the Wix Corvid Forum then as this is for all code related issues on your site. Since you have no code on your page then there is no issue with that.

So, as it is simply through the Wix Editor itself, you would be much better suited going through Wix Support themselves as they will be able to look at your site and tell you where you are going wrong.

You can either put in a ticket to them.
https://support.wix.com/en/article/contacting-wix-support
Or you can call them and speak to them directly.
https://support.wix.com/en/article/contacting-wix-by-phone-3491545

However, depending on what your form is setup as, have a look at a simple tutorial about user inputs and setting up a form etc.
https://support.wix.com/en/article/creating-a-form-with-user-input-elements
https://support.wix.com/en/article/about-user-input-elements

Also, remember that there is always the Wix Support pages that you can go to for help about anything in Wix too.
https://support.wix.com/en/