Form - Reset to default values option enabled does not pass information into database

Please fill in the questionnaire below.

Technical Help Questionnaire

Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?

Answer: Yes

Describe the problem

When using the application view to create a form, I’m hitting an issue when enabling the “reset to default values option”. In the form, I have a few options that are used, in this case to generate a support request, which passes the information to the table.

When removing the option to “reset to default values”, the information is input into the table as expected. When the option is turned on, no data is being passed to the table. As a side note, when setting the fields in the form to “require this information”, an error is parsed advising field values incorrect, as discovered, because the fields are being erased before being submitted to the table.

I have a similar situation working with resetting a password via a form, where “reset to default values” works as intended, clearing entries following a password reset.

Provide screenshots or include share links showing:

How many rows in total do you have in your Baserow tables?

3

Please attach full logs from all of Baserow’s services

Additional Screenshots

Additional Screenshot (as i am limited as to how many I can upload)

Additional Screenshot - disabling the reset.

Additional screenshot - disabling the reset - table view

Good morning @DannyJones, thanks for raising this with us.

Am I right in assuming you are running into this problem on baserow.io?

Would you mind sharing:

  1. Which elements you have in your editor (i.e. what is inside the form element).
  2. How you setup the create row workflow action which is misbehaving.

Cheers,

Peter Evans

Hi Peter.

Thanks for getting back to me.

I am using the SaaS version via baserow.io, yes.

See below the elements in the editor for the form:

The create row workflow image I’ll add in the comments, as im limited as to how many images i can attach.

Now, these work when I don’t set the field “reset to default values after submission”. The values are sent to the DB.

I get the error in the web view: “Invalid form - One or more fields contain invalid values”, when “reset to default values after submission”.

Thanks Peter.

Dan.

Create new line flow:

Worth noting, the item prior in the workflow is to simply notify the user that a new ticket has been logged.

Good afternoon @DannyJones

I am trying to replicate this locally.

I get the error in the web view: “Invalid form - One or more fields contain invalid values”, when “reset to default values after submission”.

What happens if your form does not use a dropdown input element, does it still fail when the “Reset to default values after submission” is checked?
Can you screenshot the configuration for the “Query option” dropdown, and the “Support query details”?


We are investigating this bug and we’ll get it fixed soon, thanks for your feedback :+1:

Hi there.

Same result when using a text input for example.

Just as a confirmation also, it seems that the entries on the web view dont actually clear when selecting “reset to default values after submission" also.

The “Query option” has the below;

Will follow up reply with the Query details option.

“Query Details” option

“Reset to default values after submission” does not work, after submiting the form, if this option is checked, data in the form fields does not reset to default values, they remain the same, just like this option is not checked.
Also, there is another bug, if you mark some text input fields as “requied” and then execute application (preview option), during execution, if user does not enter required field(s) before pressing submit button, nothing will hapen (there is no worning to enter required fields) and if user tries to submit the form after entering required fields, nothing happend. In short, if user misses to enter the form properly in first attempt, he will not get second chance even if he make correct inputs unless the page is refreshed …

Hello @Nerma!

Reset to default values after submission” does not work, after submiting the form, if this option is checked, data in the form fields does not reset to default values, they remain the same, just like this option is not checked.

Would you mind sharing what is inside your form? Here’s an example of what I see:

  • A form with reset to default values checked.
  • With an input text element, which has a default value of “foo@bar.com”.
  • My form begins with the input text having the default “foo@bar.com” value.
  • I change it to a new email address, the form submits.
  • After submission, the input resets to “foo@bar.com”.

reset

if you mark some text input fields as “requied” and then execute application (preview option), during execution, if user does not enter required field(s) before pressing submit button, nothing will happen

I’m having some trouble understanding this case, but again, this is what I see:

  • When a form is submitted, with no values added to required fields, we “touch” each element so that they validate themselves. If the elements are required, we show an error message.
  • Separately, if you load a form, click an element, and blur it (by tabbing away for example), we validate the element.

You can see the two cases here:

required

There is a slightly different behaviour if you’re not using a form container. We will validate the element immediately when the page loads, if it’s invalid.

I hope this helps.

Cheers,
Peter Evans