Results 1 to 4 of 4

Thread: DropDown field question.

  1. #1
    Join Date
    Oct 2002
    Posts
    161

    DropDown field question.

    I'm trying to make a dropdown field mandadory (req=true) in dbEditAddFlds. I use selectbox+b to display the field as blank. And I want to error out if they dont select a value from the dropdown list.

    I can use the req parameter with text field with no problem, but with selectbox it seems to be ignored.

    How can I make a selectbox a required field?

  2. #2
    Join Date
    Oct 2002
    Posts
    933
    1. if validator does not cover select box then use MagicValidate.

    2. This is usually not a good design. If you offer user a fixed selection and is required, you should have a default. It could be like "No preference". I do notliek to deal with blanks in DB because it could be a blank or it could be a Null.


    FK

  3. #3
    Join Date
    Oct 2002
    Posts
    161
    We have 17 office locations and this dropdown is for the location of the user that enters the data, there is no preference in this case, it is simply a mandatory field and I dont want my users to get sloppy and always use the first one that comes up.

    If there are limitations on the required parameter being available only on certain specific text type, then it should be specified in the manual.

  4. #4
    Join Date
    Oct 2002
    Posts
    933
    The doc on ASP-db is not carried over to Tornado (auto recognized).

    Parameters for validation.
    vType: 1=INPUT 2=TEXTAREA 3=PASSWORD


    I'll cut and paste this over to Tornado Doc.

    FK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •