Allowing empty field for editor to be submitted
Allowing empty field for editor to be submitted
codinglife456
Posts: 4Questions: 2Answers: 0
When attempting to submit empty check in and check out input fields via the editor, despite setting the attribute to false it still returns an error displayed on the html-side indicating that these fields are required.
{
label: "Clock In",
name: "clock_in",
"defaultContent":"null",
attr: {
required: false
}
},
{
label: "Clock Out",
name: "clock_out",
"defaultContent":"null",
attr: {
required: false
}
},
This discussion has been closed.
Answers
The
attr
fields are HTML enforcements, meaning that's purely client-side. If the server is enforcing the value, then that would be something in your server-side scripts. If you post the script here, we can take a look.Colin
@colin i actually dont have any server side script doing any validation, the server side script only deals with calculation based on the data sent over from the editor form.
Isnt the validation being done simply as a result of the form sending null values over for the date fields similar to what is said in the documentation
No, Editor, on the client-side doesn’t do any validation by default. We focus on server-side validation, since client-side is trivial to bypass. In the example screenshot you give, the two name fields are empty and the server is doing validation on them to return those error messages.
Can you give me a link to your page please, so I can help trace this through?
Allan