Support » Plugin: Contact Form 7 - Conditional Fields » conditional fields – required fields

  • Resolved callender

    (@jimcallender)


    Hi there,

    I have two fields that are conditional.

    They are also required fields WHEN they appear.

    Problem is – when they are HIDDEN, the form gives an error as these fields have not been completed.. I remove required fields from these fields *, and form works.

    Can you advise?

    thanks,

    J

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

    (@jules-colle)

    Mandatory hidden fields should not trigger validation errors. So something else is probably wrong. Can you share a link to your page and your form code and conditions?

    callender

    (@jimcallender)

    thanks for the reply Jules – could it be due to an out of date php version?

    it’s working on our dev site, but not clients live server.

    here is the form code – truncated –

    [text* first-name placeholder "First Name"] [text* last-name placeholder "Last Name "][text* company placeholder "Company"] 
    [email* your-email placeholder "Business Email"] [text* buiness-phone placeholder "Business Phone"]
    [select* your-industry first_as_label "Your Industry" "Academic"
    "Automotive"
    "Advertising & Media" 
    "Other"] 
    [select* country first_as_label "Your Location" "United Kingdom" "United States" "Afghanistan"]
    
    [group group-us-state]
    [select state first_as_label "Your State" 
    "Alabama"
    "Wyoming"][/group]
    <br />
    
    [group group-us-revenue]
    [select revenue first_as_label "Revenue" 
    "$0-24 million"
    "$25-$99 million"
    "$100-$999 million"
    "$1+ billion"][/group]
    
    [acceptance acceptance-530]I accept Privacy Policy [/acceptance]
    
    [checkbox checkbox-910 use_label_element "I would like to receive the Monthly Newsletter|Yes"]
    
    [submit class:grn-btn-std "Download now"]
    Plugin Author Jules Colle

    (@jules-colle)

    That’s surely a possibilty. What is your PHP version?

    rolturn

    (@rolturn)

    @jules-colle I am having the same issue. The drag and drop file upload field created by, Drag and Drop Multiple File Upload – Contact Form 7, plugin seems to be required when the field is required yet hidden. Is there anything I can do to resolve this?

    Plugin Author Jules Colle

    (@jules-colle)

    @rolturn Not sure what you are asking.. Does it work if you disable the drag&drop plugin? Also: please create another topic for this. I’m pretty sure the cause of your problem is unrelated to the cause of the OP’s problem.

    • This reply was modified 3 weeks, 5 days ago by Jules Colle.
    callender

    (@jimcallender)

    @jules-colle – how can i get wp-admin login to you securely so that you can investigate config? thank you. J

    • This reply was modified 3 weeks, 5 days ago by callender.
    Plugin Author Jules Colle

    (@jules-colle)

    @jimcallender not possible with the free plugin. The WP support forums prohibit sharing information or providing private support. This forum is intended to be a community tool where everyone can learn. So I cannot look into your issue privately. I do offer personal support for the Pro version.

    callender

    (@jimcallender)

    ok, closing this. it works on our staging, but not on live – so putting this down to the older php version on live.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.