Skip to content

"Post Event" button changes to "Update Event" if error while posting #178

@kkilbey

Description

@kkilbey

Description

On the Post an Event page, the button to submit a new event says "Post Event."
image

However, if someone tries to post an event, but misses a required field and receives an error message...
image

...the button at the bottom changes from "Post Event" to "Update Event."
image

This implies that the event has already been created and the user is now updating it, but really no event (or draft) exists. If the button stayed as "Post Event" after the error message came up, it would be clearer for users that they are still posting a new event.

This may be an item for discussion. Is it fixable? And is it worth fixing?

Expected behaviour

"Post Event" button stays as "Post Event" until event is successfully posted.

Actual behaviour

If user misses a required field and receives an error message, the "Post Event" button changes to "Update Event" even though the event has not yet been successfully posted.

Steps to reproduce the problem

  1. Log in to TLPD as a contributor
  2. Click "Add New" and fill in some event details. Make sure you do not fill in all the required fields--leave at least one blank.
  3. Click "Post Event." You will receive an error message saying you must fill in the required fields.
  4. Scroll down to see that the "Post Event" button now says "Update Event."

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions