• Resolved omer761

    (@omer761)


    I have created conditional fields group in a dropdown and I want those drop down as required but I can’t figure out how to do it, I have mark each conditional fields group required but it doesn’t work,
    Also I was using multi step for this form but this doesn’t take to next page and keep searching so I have changed the form to one page only for now , I would also like to change it to multistep , please help
    Thanks in advance

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    you can make them required. Your problem is that the first option in all your select boxes is also a valid option. You should add include_blank to your select boxes, so they can actually have no value 😉

    [select* my-name include_blank “option1” “option2”]

    CF7 is tested with the 2 multistep plugins that I am aware of, so this should work, as long as the groups and the controlling fields are in the same step.

    Thread Starter omer761

    (@omer761)

    Thankyou for reply
    I tried doing it, but it only shows first dropdown until you select an option then the second dropdown appears and certainly it is required now but it doesn’t look good, I have created another form to work on plz see the link below
    https://test2.ofb.ujr.mybluehost.me/test-page-2/

    Thread Starter omer761

    (@omer761)

    Is there anyway of putting a placeholder text in dropdown menu like other text or TEL field in contact form ?

    Plugin Author Jules Colle

    (@jules-colle)

    You could go like this:

    [select* my-name "-- choose -- " "option1" "option2"]

    then the condition:

    if my-name not equals "-- choose --" then show group-xxx

    Thread Starter omer761

    (@omer761)

    it Can make second drop down appear but if u select any of the option from first dropdown then 2 more drop down appears, plz have a look at the form now
    https://test2.ofb.ujr.mybluehost.me/test-page-2/

    I was thinking if I use the original form https://test2.ofb.ujr.mybluehost.me/claimform/
    And we can create some sort of condition that first option doesn’t count towards the option and can make the both dropdown required ?

    Thread Starter omer761

    (@omer761)

    problem solved
    What I did was put code ( first_as_label ) before each group option and problem solved
    Thank you for your help

    Plugin Author Jules Colle

    (@jules-colle)

    Great one! I always forget about that option.

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Conditional fields group dropdown can’t mark as required’ is closed to new replies.