• Hi,
    I have a form with three selects. The user has to use exactly one of those three selects.

    If it were only one select, I could define it as an obligatory field. No problem in that case. 😉 But if I define all three of them as obligatory fields, the user has to use all three. Therefore this does not make sense.

    Are there any solutions for that? Maybe with an additional plugin? Or can it be done out of the box?

    Thanks
    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I think you can do it using this technique:

    Custom validation

    Thread Starter rabox66

    (@rabox66)

    Thanks for the answer. but I think this will not work. The problem is, that all three selects have different data. So I can only use true (id a selection is made) or false (if no selection is made.) It must be one true and two false in order to send the form. That is a little bit more tricky maybe.

    So I will see if I can change the code you suggest.
    Thanks
    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Several Selctboxes – only one has to be used olgigatory’ is closed to new replies.