Reseting a Form

I have a form created with the body of a Card. The form is an INSERT. The form successfully inserts records into the database.

I would like to clear the last values entered into the input fields of the form. I have tried resetting the form with an “Action” with no success. Attached are screenshots so you can better see what I am doing.

Thanks in advance.

Hey Bruce,

Is it possible that the inputs you want to clear, have default values? To explain, the form reset does not actually clear inputs, it resets them back to their original value. Therefore if you have a static value on an input that serves as a default, then a form reset will return that static value rather than clearing the input to null.

If your inputs are empty to start, maybe toss up a link to your page and somebody will figure it out.

I think it’s a bug in a card collapse.

Go into the code and in your form tag remove ‘card1_collapse.’ from your action and it should work. It should be just ‘serverconnectform2.reset’.

1 Like

Understood. I have no static values associated with input fields. I did test with static values and upon saving it did not return the stair values. Summary, that does not work. It must be something else.

HI Brad, I will try your suggestion. I’m just am in the process of rebuilding the table and need to make the necessary changes to the page before I can retest.

1 Like

Hi Brad,

This did indeed solve the issue.

Thank you,

Bruce

1 Like