Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

New Discussion: A way to NOT select a category by default?

I want to teach my community of users that they need to select a Category. Can I modify Vanilla so that it doesn't automatically select a default Category? (So that if they didn't choose a Category and tried to post, it would remind them that they need to choose a Category.)

Best Answers


  • Options
    hgtonighthgtonight ∞ · New MVP

    Did this javascript not work for you?

    $('#Form_CategoryID').prop('selectedIndex', -1);

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    Yes, the JS worked for the dropdown, but it still lets me post without choosing a Category. How do I make that a required field?

Sign In or Register to comment.