I have been using the Sever Action debug instructions to try and work out what is happening here.
I have an insert server action and BS4 form that is adding records to a MySQL db. One of the fields I have set to the default of “none” rather than null. When I load the page with the form then I am seeing the server status 500 message in the developer console and this shows it is coming from the fetch function. I have attached a screenshot.
If I change the database structure from “none” to “null” then I no longer get the server status 500 message. However I am getting records with only nulls added to the database when I backspace from one field to the previous one.
I have validation set to “required” on the field described above.
Can someone provide a suggestion please ?