Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter kyudos

    (@kyudos)

    I see some other people have similar issues – likely mine is the same. Hopefully your update will fix these too – thanks!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    yes, I am aware of the issue. CF7 v5.2.1 has changed the way it handles dropdows, and this is affecting the plugin.

    I am looking into this and will get a fix out soon.

    In the meantime, please downgrade to CF7 5.2 and v3.3.5 of the smart grid.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    here is a pre-release of v3.3.7, can you manually install it and see if it works.

    Thread Starter kyudos

    (@kyudos)

    That seems to have fixed the problem of the hidden required fields, but there is still an issue with populating the conditional addresses. I get:

    “There was an error trying to send your message. Please try again later.”

    And WP Mail SMTP tells me:

    “Mailer: Other SMTP
    You must provide at least one recipient email address.”

    Suggesting that neither of my destination addresses are making it through (I have two address selected from alternately visible conditional select fields. My form is set to email both addresses, but I have ‘clear on hide’on both of them, so only one should be valid (populated) at a time).

    Plugin Author Aurovrata Venet

    (@aurovrata)

    My form is set to email both addresses, but I have ‘clear on hide’on both of them, so only one should be valid (populated) at a time).

    Can you confirm if this issue goes away when you downgrade the smart-grid plugin?

    If so, are you seeing any javascript error on form itself?

    Thread Starter kyudos

    (@kyudos)

    I haven’t tried downgrading specifically, but it certainly works if I disable the smart-grid plugin. I’ll see if I can find the links to downgrade and let you know.

    Thread Starter kyudos

    (@kyudos)

    OK – I downgraded to 3.3.5 and the address choice works (once I’ve disabled the ‘required’- ness on the fields of course).

    So is it something to do with the Conditional Fields ‘clear on hide’? Both fields are being cleared on POST or something? I don’t know how to tell?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    So is it something to do with the Conditional Fields ‘clear on hide’?

    yes, I suspect this could be the reason. Would you give me a little more description on how you setup those 2 fields?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    (I have two address selected from alternately visible conditional select fields. My form is set to email both addresses, but I have ‘clear on hide’on both of them, so only one should be valid (populated) at a time).

    Your form (on the page you shared: https://www.irricad.com/) doesn’t show any dropdown with email values, so I am confused as to how you capture your email addresses

    Thread Starter kyudos

    (@kyudos)

    CF7 allows you to alias items in select-boxes, so that the choice is different to the displayed text, using the pipe (|) character. This is useful for choosing email addresses without exposing them to spam.

    This is my form:

    <div class="container">
      <div class="row">
        <div class="columns five">
          <div class="field"><label>Name<em>*</em></label>[text* Name]
            <p class="info-tip">Enter your full name</p>
          </div>
        </div>
        <div class="columns one-half offset-one">
          <div class="field"><label>Company<em>*</em></label>[text* Company]
            <p class="info-tip">Enter your company name</p>
          </div>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <div class="columns five">
          <div class="field"><label>Email<em>*</em></label>[email* Email]
            <p class="info-tip">Enter a valid email</p>
          </div>
        </div>
        <div class="columns one-half offset-one">
          <div class="field"><label>Phone<em>*</em></label>[tel* Phone]
            <p class="info-tip">Enter your phone number</p>
          </div>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <div class="columns five">
          <div class="field"><label>City</label>[text City]
            <p class="info-tip">Enter your city</p>
          </div>
        </div>
        <div class="columns one-half offset-one">
          <div class="field"><label>State / Province</label>[text State]
            <p class="info-tip">Enter your state or province</p>
          </div>
        </div>
      </div>
    </div>
    <div class="container with-toggle" id="PC5srM" data-group="">
      <div class="row">
        <div class="columns five">
          <div class="field"><label>Country<em>*</em></label>[select* Country include_blank "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antigua and Barbuda" "Argentina" "Armenia" "Armenia" "Aruba" "Australia" "Austria" "Azerbaijan" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bonaire" "Bosnia and Herzegovina" "Botswana" "Bouvet Island (Bouvetoya)" "Brazil" "British Indian Ocean Territory (Chagos Archipelago)" "British Virgin Islands" "Brunei Darussalam" "Bulgaria" "Burkina Faso" "Burundi" "Canada" "Cambodia" "Cameroon" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Christmas Island" "Cocos (Keeling) Islands" "Colombia" "Comoros" "Congo" "Congo" "Cook Islands" "Costa Rica" "Cote d'Ivoire" "Croatia" "Cuba" "Cura?ao" "Cyprus" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Falkland Islands (Malvinas)" "Faroe Islands" "Fiji" "Finland" "France" "French Guiana" "French Polynesia" "French Southern Territories" "Gabon" "Gambia" "Georgia" "Georgia" "Germany" "Ghana" "Gibraltar" "Greece" "Greenland" "Grenada" "Guadeloupe" "Guam" "Guatemala" "Guernsey" "Guinea" "Guinea-Bissau" "Guyana" "Haiti" "Heard Island and McDonald Islands" "Holy See (Vatican City State)" "Honduras" "Hong Kong" "Hungary" "Iceland" "India" "Indonesia" "Iran" "Iraq" "Ireland" "Isle of Man" "Israel" "Italy" "Jamaica" "Japan" "Jersey" "Jordan" "Kazakhstan" "Kazakhstan" "Kenya" "Kiribati" "Korea" "Korea" "Kuwait" "Kyrgyz Republic" "Lao People's Democratic Republic" "Latvia" "Lebanon" "Lesotho" "Liberia" "Libyan Arab Jamahiriya" "Liechtenstein" "Lithuania" "Luxembourg" "Macao" "Macedonia" "Madagascar" "Malawi" "Malaysia" "Maldives" "Mali" "Malta" "Marshall Islands" "Martinique" "Mauritania" "Mauritius" "Mayotte" "Mexico" "Micronesia" "Moldova" "Monaco" "Mongolia" "Montenegro" "Montserrat" "Morocco" "Mozambique" "Myanmar" "Namibia" "Nauru" "Nepal" "Netherlands" "Netherlands Antilles" "New Caledonia" "New Zealand" "Nicaragua" "Niger" "Nigeria" "Niue" "Norfolk Island" "Northern Mariana Islands" "Norway" "Oman" "Pakistan" "Palau" "Palestinian Territory" "Panama" "Papua New Guinea" "Paraguay" "Peru" "Philippines" "Pitcairn Islands" "Poland" "Portugal" "Puerto Rico" "Qatar" "Reunion" "Romania" "Russian Federation" "Rwanda" "Saint Barthelemy" "Saint Helena" "Saint Kitts and Nevis" "Saint Lucia" "Saint Martin" "Saint Pierre and Miquelon" "Saint Vincent and the Grenadines" "Samoa" "San Marino" "Sao Tome and Principe" "Saudi Arabia" "Senegal" "Serbia" "Seychelles" "Sierra Leone" "Singapore" "Sint Maarten (Netherlands)" "Slovakia (Slovak Republic)" "Slovenia" "Solomon Islands" "Somalia" "South Africa" "South Georgia & S. Sandwich Islands" "Spain" "Sri Lanka" "Sudan" "Suriname" "Svalbard & Jan Mayen Islands" "Swaziland" "Sweden" "Switzerland" "Syrian Arab Republic" "Taiwan" "Tajikistan" "Tanzania" "Thailand" "Timor-Leste" "Togo" "Tokelau" "Tonga" "Trinidad and Tobago" "Tunisia" "Turkey" "Turkey" "Turkmenistan" "Turks and Caicos Islands" "Tuvalu" "U.S. Virgin Islands" "U.S. Minor Outlying Islands" "Uganda" "Ukraine" "United Arab Emirates" "United Kingdom" "United States" "Uruguay" "Uzbekistan" "Vanuatu" "Venezuela" "Vietnam" "Wallis and Futuna" "Western Sahara" "Yemen" "Zambia" "Zimbabwe"]
            <p class="info-tip">Enter your country of residence</p>
          </div>
        </div>
        <div class="columns one-half offset-one">
          [group group-dist_ir clear_on_hide]
          <div class="field"><label>Distributor Region<em>*</em></label>[select* Distributor1 include_blank "New Zealand|[email protected]" "Australia|[email protected]" "Americas|[email protected]" "Middle East|[email protected]" "Europe and North Africa" "Southern Africa and Kenya|[email protected]" "China|[email protected]" "Other markets|[email protected]"]
            <p class="info-tip">Enter your world region</p>
          </div>[/group] [group group-dist_fq clear_on_hide]
          <div class="field"><label>Distributor Region<em>*</em></label>[select* Distributor2 include_blank "New Zealand|[email protected]" "Australia|[email protected]" "Other markets|[email protected]"]
            <p class="info-tip">Enter your world region</p>
          </div>[/group]</div>
      </div>
      <div class="container">
        <div class="row">
          <div class="columns five">
            <div class="field"><label>Select software of interest<em>*</em></label>[select* Software include_blank "IRRICAD Quote|[email protected]" "IRRICAD Demo|[email protected]" "IRRICAD Training|[email protected]" "FastQuote Quote|[email protected]" "FastQuote Demo|[email protected]" "Other Request|[email protected]"]
              <p class="info-tip">Select software</p>
            </div>
          </div>
          <div class="columns one-half offset-one">
            [group group-irricad-user]
            <div class="field"><label>Are you an existing IRRICAD user?<em>*</em></label>[select* Current include_blank "Yes - I use version 18" "Yes - I use version 17" "Yes - I use version 16" "Yes - I use version 15" "Yes - I use version 14" "Yes - I use version 13" "Yes - I use version 12" "Yes - I use version 11 or older" "No"]
              <p class="info-tip">Enter the version of IRRICAD you currently use</p>
            </div>[/group] [group group-fastquote-user]
            <div class="field"><label>Are you an existing FastQuote user?<em>*</em></label>[select* Current include_blank "Yes - I use version 5" "Yes - I use version 4" "Yes - I use version 3" "No"]
              <p class="info-tip">Enter the version of FastQuote you currently use</p>
            </div>[/group]</div>
        </div>
      </div>
      <div class="container">
        <div class="row">
          <div class="columns full">
            <div class="field"><label>Message<em>*</em></label>[textarea* Message x5]
              <p class="info-tip">Enter a brief message</p>
            </div>
          </div>
        </div>
      </div>
      <div class="container">
        <div class="row">
          <div class="columns nine">
            <div class="field"><label>This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.</label>
              <p class="info-tip"></p>
            </div>
          </div>
          <div class="columns one-fourth">
            <div class="field"><label></label>[submit "Send"]
              <p class="info-tip"></p>
            </div>
          </div>
        </div>
      </div>
    </div>
    • This reply was modified 4 years, 3 months ago by kyudos.
    Thread Starter kyudos

    (@kyudos)

    And my conditions:

    show [group-irricad-user] if [Software] equals "IRRICAD Demo"
    show [group-irricad-user] if [Software] equals "IRRICAD Training"
    show [group-irricad-user] if [Software] equals "IRRICAD Quote"
    show [group-fastquote-user] if [Software] equals "FastQuote Quote"
    show [group-fastquote-user] if [Software] equals "FastQuote Demo"
    show [group-irricad-user] if [Software] equals "Other Request"
    show [group-irricad-user] if [Software] equals ""
    show [group-dist_ir] if [Software] equals ""
    show [group-dist_ir] if [Software] equals "IRRICAD Demo"
    show [group-dist_ir] if [Software] equals "IRRICAD Training"
    show [group-dist_ir] if [Software] equals "IRRICAD Quote"
    show [group-dist_ir] if [Software] equals "Other Request"
    show [group-dist_fq] if [Software] equals "FastQuote Quote"
    show [group-dist_fq] if [Software] equals "FastQuote Demo"
    Thread Starter kyudos

    (@kyudos)

    And finally my mail template:

    To: [Distributor1], [Distributor2]
    From: IRRICAD <[email protected]>
    Subject: CONTACT US: [_raw_Software]
    Additional: Reply-To: [Email]
    cc: [Software]

    Body: <table width=”800″ border=”0″ cellpadding=”0″ cellspacing=”0″>
    <tr><td><b>From:</b></td><td>[Name] <[Email]></td></tr>
    <tr><td><b>Company:</b></td><td>[Company]</td></tr>
    <tr><td><b>Phone:</b></td><td>[Phone]</td></tr>
    <tr><td><b>City:</b></td><td>[City]</td></tr>
    <tr><td><b>State / Province:</b></td><td>[State]</td></tr>
    <tr><td><b>Country:</b></td><td>[Country]</td></tr>
    <tr><td><b>User:</b></td><td>[Current]</td></tr>
    </table>
    <hr/>

    [Message]

    <hr/>

    This e-mail was sent from a contact form on the IRRICAD website

    Plugin Author Aurovrata Venet

    (@aurovrata)

    CF7 allows you to alias items in select-boxes, so that the choice is different to the displayed text, using the pipe (|) character.

    got it. I have a suspicion this might be the source of the problem, let me test this on my server and get back to you.

    A small suggestion would be to manage your country list using the dynamic dropdown field available in the smart-grid plugin. See this video tutorial I just released for more details.

    Furthermore, enabling the dynamic dropdown as a select2 field would make it much easier for users to search their country.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Ok, I found the piped values were beign overwritten as I suspected.

    I got a fix for this in v3.3.7rc2. Would you test it on your setup and let me know if it works for you?

    Thread Starter kyudos

    (@kyudos)

    Yes it all works perfectly – thanks a lot!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Doesn’t Play Nice With Conditional Fields Plugin’ is closed to new replies.