One of the 2 checkboxes have to be ticked

  • I am doing a survey, and one of the question is mandatory.

    There is 2 checkbox in it. Candidate must tick one of the 2.

    If none of them is ticked, a prompt message should appear.

    How can i do that? Must i group the 2 checkboxes together first?

    Thank you

  • Re: One of the 2 checkboxes have to be ticked


    Set one of them to have a default value of True at design time and then one will always be selected.
    It's a lot easier than adding check boxes and then coding to ensure one is selected.

    Coding to Windows design standards (which are much of a joke in any case) dicatate that option buttons are used where one item must be selected, and checkboxes for optional choices.
    J

  • Re: One of the 2 checkboxes have to be ticked


    WORK_10,


    Please do not create duplicate threads. You can easily amend a thread by clicking the EDIT POST button in the original thread.
    I have deleted your other thread on this topic.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!