Clear fields on form submission

Home Forums Feature Requests Clear fields on form submission

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #774
    Evan
    Guest

    This may seem like a weird request and nobody else seems to have asked it in the WordPress forum.

    I would love to be able to set a form to not refresh or redirect upon submission but just clear the fields. Or even just show a post submitted message and nothing else.

    My specific use case is that I would like to use multiple forms on one page.

    The main form includes a Relationship field made up of “People” custom post types. I’d like to have a secondary form on the side that can be used to add a “Person” post. That works fine if the main form hasn’t been started but if you refresh the page anything done in the main form is obviously lost.

    I realize the new person wouldn’t show up in the box for the relationship field but it does show up with autocomplete without a refresh.

    Right now I have a button that opens a separate page with the secondary form. I guess another option might be to make a multi step form with the name of the person first with the option to add a new person.

    Thanks,
    Evan

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Get the free plugin and receive updates