• Resolved sergiarias

    (@sergiarias)


    Hello!

    I am animating the form submission by applying an opacity layer of 50% after submit and 0% on success and 100% on error.

    As the animation takes 0,3s and the form usually gets sent before that time, during the animation the user sees the form reset inside the animation, which is weird to the eye.

    Would it be possible to make the form reset optional but true by default? this way, I would do the reset myself once the animation finished.

    The form reset happens in lines 446 to 448 of public.js:

    
            if (!response.error) {
              formEl.reset();
            }
    
    • This topic was modified 3 years, 10 months ago by sergiarias.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    What if you se the form to not hide after successful submission, under the Settings tab when you edit the form? Or is there still some animation even when hide is set to no?

    Thread Starter sergiarias

    (@sergiarias)

    I disabled the hide submission because it applies a display none and thus don’t allow me to animate.

    The form reset I was referring to, is a js function that cleans the fields the user has entered into the form after successful submission, so he cannot send the form over and over. As I am applying the animation I can see the form cleaning its fields and it looks weird, like a glitch.

    It’s not a big deal, but it would be a very neat feature.

    I think I should have reported it as an feature request on github and create a pull request for disabling it through a data option.

    Thanks for the help!

    If you are willing/able to put in a a pull request for this that would be great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘form reset and animations’ is closed to new replies.