• Resolved Merlin Silk

    (@merlinsilk)


    Hi Peter,
    things are working very well and people who are working on entering data are happy. They found one little inconvenience and I just now verified it:
    I have a page with [wpdadiehard project_id=”1″ page_id=”1″]
    and when I click on Add New I get a form where I can fill the fields. When in the middle of filling the form I change my mind I can click on Reset Form and all fields are erased and I can start fresh – all good.
    But when I have entered all my data for a record and selected Save Changes to Database, I get back to the same form still filled with the data I just entered. Now, when I click on Reset Form, nothing happens – the data is not reset.
    There is an easy work-around, just going back to the table and then selecting Add New, so it’s not a big deal, but the Reset Form working would save an extra step and page load.
    Cheers,
    Merlin

    • This topic was modified 5 years, 4 months ago by Merlin Silk.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Merlin,

    Good to hear from you again! And good to hear things are working well.

    You wrote: “Now, when I click on Reset Form, nothing happens – the data is not reset.”

    The action on a reset button is to “resets all form values to its initial values”. This is the default reset behaviour, see:
    https://www.w3schools.com/tags/att_input_type_reset.asp

    If you follow the link I added you’ll see that it says: “Tip: Avoid reset buttons in your forms! It is frustrating for users if they click them by mistake.” Maybe I should have read it before! 🙂

    I had this question before, so I see that it makes sense to either remove the button (as suggested on w3schools.com) or add the logic users a re expecting to it. My question to you: “What behaviour do expect when the user clicks this button?”

    Best regards,
    Peter

    Thread Starter Merlin Silk

    (@merlinsilk)

    Hi Peter,
    interesting point regarding the reset button – and I do agree with w3schools. I don’t think I have ever used it anywhere and seen any use for it.
    Thinking of usability in my case, you could either skip the screen that shows the data that has just been entered or instead of the Reset Form, have a button “Add New” which would clear the data and allow for entry of the next record.
    The first actually seems like the cleaner method: you start at the table view, press a button (Add), a new window opens the user interacts with, and as he completes that actions he is back where he started – at the table view – and can press the button Add New again if that is what he wants. In the case of entering just one new record that would actually reduce a refresh and click as he does not have to press Show Table.
    Loss of functionality would only be for a case where somebody would enter several records with similar data, where, in the current situation, he would just change the one or two items without being required of entering all data again. [But if this is the case then the database should be designed better 🙂 ]
    So, yeah, my vote would be to remove the confirmation of the data just added and go straight back to the table view.
    Cheers,
    Merlin

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Merlin,

    (1) I’ll take out the reset button! I’m gonna miss it myself 😇 but I see how a user might get confused. Thanks for contribution!

    (2) I’ll see if I can add an “Add New” button. It is already available for child tables. It’s a good idea to add it to all data entry forms.

    (3) Not sure if jumping back to the list after an insert (and update?) is a good idea. If you for example add or edit a post, page or comment, you’ll stay on that page when you press the save button. Changing that “default” WordPress behaviour might confuse users.

    I’ll let you when I’ve done (1) and/or (2).

    Just to let you know, your request “allow to export data from a view” is still on my to do list! Before I can add that feature, I need to redesign a part of the plugin first. That’s why it takes so long. So many ideas and so many requests… But I didn’t forget! 😉

    Best regards,
    Peter

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Merlin,

    Version 3.0.1 is released. The reset button was removed. The “Add New” button is on my to do list. It’s going to take more time than expected. I’ll try to add it to the next release.

    Best regards,
    Peter

    Thread Starter Merlin Silk

    (@merlinsilk)

    Perfect! Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘reset form to add a record does not work’ is closed to new replies.