Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Dropdown field type marked as required

Dropdown field type marked as required 15 years 9 months ago #3876

  • rjrosamond
  • rjrosamond's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
A custom field of type \"dropdown\" that\'s been marked as a required field never actually ends up being required. The red star appears on the front end indicating it\'s required. But selection of any of the field values lets the form submit. I\'ve tried creating a null field value as the first entry in the dropdown list, but that doesn\'t do it. Bottom line is that users can get by with skipping the dropdowns altogether. Seems a pretty straightforward update to the Javascript validation would resolve this (look for a null value if the field is required). Or, by default, add a null value to every dropdown, and if that\'s still selected when the form gets submitted, throw an alert. Thanks!

Please Log in or Create an account to join the conversation.

Dropdown field type marked as required 15 years 8 months ago #3959

  • ericbecky
  • ericbecky's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
I am experiencing the same thing.

Unfortunately that means that people are able to skip some of my \"required\" drop down boxes. Which means that we may run into some disputes later.

Hopefully there is a workaround or fix for this in the future.

edit: It appears this has been reported in the past, by another user. See this post http://www.dthdevelopment.com/index.php?option=com_fireboard&Itemid=73&func=view&id=3959&catid=16#3959 . The user stated \"if I make a the selected option in the drop - down - \"select one\" it seems to satisfy the script checking that something is selected.\"

Please Log in or Create an account to join the conversation.

Dropdown field type marked as required 15 years 7 months ago #4221

  • rjrosamond
  • rjrosamond's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Any update as to whether this "bug" can be supported by the development team? I've already tweaked the code on my installation, but it would be nice to have it also integrated as a bugfix on the next release. Thanks!

Please Log in or Create an account to join the conversation.

Dropdown field type marked as required 15 years 1 month ago #5335

  • mrcctv
  • mrcctv's Avatar
  • Visitor
  • Visitor
Anyone found a solution to this problem. I would really like to use the dropdown menus instead of radio buttons as the radio buttons use up a lot of real-estate on the page.

One thought comes to mind it can be simple as the first option flags the error. If someone could point me in the right direction maybe I can take a stab at it. :mrgreen:

Please Log in or Create an account to join the conversation.

Dropdown field type marked as required 14 years 9 months ago #6936

  • ductape
  • ductape's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
HOLY COW!

This thread is very old and this problem is still here. Why are we getting new features when something as simple as this does not work?

When i create a dropdown field, set it to required, and leave selection blank, it simply picks the first value and lets the user go through the end of registration wiht no errors.

PLEASE THIS MUST WORK, IT IS THE MOST BASIC OF FUNCTIONS FOR A FORM.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 1.289 seconds