Results 1 to 5 of 5

Thread: [Bug] Invisible mandatory fields

  1. #1
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default [Bug] Invisible mandatory fields

    Hello,

    if you make one of the mandatory fields invisible (strange use-case, I know), an SQL-error appears when users tries to use the form.

    Regards.

  2. #2
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: [Bug] Invisible mandatory fields

    All mandatory fields on a form, must be visible and must contain a value. Why would you ever make an invisible field? Use a hidden field and then you can't make it mandatory anyway, since you're responsible to complete the field value.

  3. #3
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default Re: [Bug] Invisible mandatory fields

    I know it's a strange use case, but the admin interface allows you to make mandatory fields invisible, and this triggers a nasty error when a user tries to submit a form.

  4. #4
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: [Bug] Invisible mandatory fields

    Just uncheck mandatory, then make it invisible, then you won't get the error... That's a Contao bug, because Hidden fields should not be selectable as mandatory anyways...

  5. #5
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: [Bug] Invisible mandatory fields

    Did you submit a ticket already?

Bookmarks

Posting Permissions

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