• Ref RADIO BUTTON form below, two groups together.
    Using Contact Form 7.
    [Radio-10]: A1, A2, A3, A4, C1, C2, C3, C4 (1 of 8 buttons).
    [Radio-11]: B1, B2, B3, B4 (1 of 4 buttons).

    O A1 O B1 O C1
    O A2 O B2 O C2
    O A3 O B3 O C3
    O A4 O B4 O C4

    ALREADY WORKING, ref codes below:
    The form skal be checked with 2x buttons, submitted and return the 2x values (e.g. 61 & 72, ref codes below).
    ONE checked in column B (middle), and ONE checked in column A/C.
    2x checked in total (within 12x buttons)

    NOT IMPLEMENTED – NEEDS HELP TO SOLVE, ref codes below:
    Only ONE ckecked per row is allowed. Two rows unchecked (open) when form is completed and submitted.

    As it is per now it is possible to check 2x in the same row, and this has to be modified to maximum 1x possible checked per row.

    SO, CONDITIONS/RULES TO BE INCLUDED:

    If checked A1 or C1, not possible to check B1
    If checked B1, not possible to check A1 or C1

    If checked A2 or C2, not possible to check B2
    If checked B2, not possible to check A2 or C2

    If checked A3 or C3, not possible to check B3
    If checked B3, not possible to check A3 or C3

    If checked A4 or C4, not possible to check B4
    If checked B4, not possible to check A4 or C4

    FOR INFO:
    “novalidate” is included in the codes to get rid of fault message (“Please fill out this field”).

    MY CODING, THAT NEEDS TO BE MODIFIED – FOR MAXIMUM ONE CHECKED PER ROW:

    [radio radio-10 id:1 class:2 use_label_element default:1 "A1 | 61"] [radio radio-11 id:1 class:2 default:2 "B1 | 62"] [radio radio-10 id:1 class:2 use_label_element default:2 "C1 | 63"] 
    
    [radio radio-10 id:1 class:2 use_label_element default:2 "A2 | 71"] [radio radio-11 id:1 class:2 default:1 "B2 | 72"] [radio radio-10 id:1 class:2 use_label_element default:2 "C2 | 73"] 
    
    [radio radio-10 id:1 class:2 use_label_element default:2 "A3 | 81"] [radio radio-11 id:1 class:2 default:2 "B3 | 82"] [radio radio-10 id:1 class:2 use_label_element default:2 "C3 | 83"]
    
    [radio radio-10 id:1 class:2 use_label_element default:2 "A4 | 91"] [radio radio-11 id:1 class:2 default:2 "B4 | 92"] [radio radio-10 id:1 class:2 use_label_element default:2 "C4 | 93"] 
    
    [submit "Submit"]

    I will be super grateful if someone can help me with this request.

    The page I need help with: [log in to see the link]

  • The topic ‘Needed conditions for a “double radio group”’ is closed to new replies.