Skip to content

Buttons below submit bypass form validation (Project/Comment/Favorite alerts show without filling form) #405

@Akanksha07-c

Description

@Akanksha07-c

In the form "Want to add your project", the buttons below the submit button (New Project, New Comment, Favorite) trigger alerts like “Project added” or “Comment added” even when the required fields are left empty.

This behavior bypasses the form’s validation and may confuse users by showing success messages without actually submitting data.

Steps to Reproduce:

Open the "Want to add your project" form.

Leave the required fields empty.

Click on New Project, New Comment, or Favorite.

Notice that alerts still appear (e.g., Project added) without any form submission.

Expected Behavior:

These buttons should not trigger success alerts unless the form is properly filled and validated.

Alternatively, they should be removed if they are not connected to form submission.

Possible Solution :

Connect these buttons to the form’s validation logic.

Disable/remove them if they are placeholders or not part of the actual workflow.

Screenshot ;

Image

Additional Context:
I came across this while testing the form functionality. This might confuse contributors or users trying to add their projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions