• Resolved lextof

    (@lextof)


    I have a page with a CF7 form that holds some conditional fields. The conditional fields are shown nicely according to the rules laid out. So it works. However, the conditional fields are not shown (made visible) while I’m testing a duplicated version of it.

    I tried this ultimate duplicate test method as I experienced non working conditional fields after creating a new form. I thought I made a mistake, but duplicating a working form and seeing it fail while testing tells me there might be something wrong.

    I’m not a programmer, so I can’t debug things unfortunately. But maybe someone else experienced it before and can tell me what to do.

Viewing 6 replies - 1 through 6 (of 6 total)
  • My Conditional fields have just stopped working:

    https://englishcountrymusicweekend.org.uk/weekend-tickets/

    The top selector “Paypal” or “BACS” should show the selection next to it. Conditionals in the mail message also have stopped working:

    I am geting this now:

    [paypal]Payment by Paypal[/paypal]
    [BACS]Payment by BACS or cheque[/BACS]

    whereas on the 19th I got this:

    Payment by Paypal

    Plugin Author Jules Colle

    (@jules-colle)

    @lextof can you share a link to your copied website?

    @brianread please create a new topic with your question. Easier to follow up for me.

    Thread Starter lextof

    (@lextof)

    @jules-colle You can find the form active on: https://eurol.com/test-2/

    In order to keep it clean I only configured one field that holds custom fields to be shown. You can select: Motor, Transmissie, Brandstoffen, Hydrauliek, Aandrijving cardan or Andere to trigger a hidden custom field. All other options doesn’t require extra input for us.

    Below the code I have used.

    On https://eurol.com/sponsoring/ is another form that also have some conditional fields that are truly working. Just select any type of sponsoring.

    
    <label for="cf-equipment-part"><span class="cf-label">Materieel onderdeel*</span>[select* cf-equipment-part id:cf-equipment-part class:cf-equipment-part include_blank "Rollend materieel" "Stationair materieel" "Motor" "Transmissie" "Brandstoffen" "Hydrauliek" "Vetten" "Koelcompressor" "Turbine" "Transformator" "Thermische olie" "Aandrijving cardan" "Koelvloeistoffen" "Andere"]</label>
    
    [group Engine]
    <h4>Motor</h4>
    <span class="cf-label">Definieer type motor*</span>[radio cf-equipment-engine id:cf-equipment-engine class:cf-equipment-engine use_label_element default:0 "Benzine" "Diesel" "Biodiesel" "Gasmotor op aardgas" "Gasmotor op biogas" "Gasmotor op stortgas"]
    [/group]
    
    [group Transmission]
    <h4>Transmissie</h4>
    <span class="cf-label">Definieer type transmissie*</span>[radio cf-equipment-transmission id:cf-equipment-transmission class:cf-equipment-transmission use_label_element default:0 "Manueel" "Automatisch"]
    [/group]
    
    [group Fuels]
    <h4>Brandstoffen</h4>
    <span class="cf-label">Definieer type brandstof*</span>[radio cf-equipment-fuel id:cf-equipment-fuel class:cf-equipment-fuel use_label_element default:0 "Benzine" "Diesel"]
    [/group]
    
    [group Hydraulique]
    <h4>Hydroliek</h4>
    <span class="cf-label">Definieer type hydrauliek*</span>[radio cf-equipment-hydraulique id:cf-equipment-hydraulique class:cf-equipment-hydraulique use_label_element default:0 "Pomp" "Ventielen"]
    [/group]
    
    [group Cardan]
    <h4>Aandrijving cardan</h4>
    <span class="cf-label">Definieer type aandrijving cardan*</span>[radio cf-equipment-cardan id:cf-equipment-cardan class:cf-equipment-cardan use_label_element default:0 "Differentieel voorbrug" "Differentieel achterbrug" "Eindaandrijving" "Reductiekast" "Pompreductie"]
    [/group]
    
    [group Other]
    <h4>Andere</h4>
    <label for="cf-equipment-other"><span class="cf-label">Definieer type materieel*</span>[text cf-equipment-other id:cf-equipment-other class:cf-equipment-other]</label>
    [/group]
    
    <button type="submit" class="button">Versturen</button>
    

    Conditional Fields:

    
    show [Engine] if [cf-equipment-part] equals "Motor"
    show [Transmission] if [cf-equipment-part] equals "Transmissie"
    show [Fuels] if [cf-equipment-part] equals "Brandstoffen"
    show [Hydraulique] if [cf-equipment-part] equals "Hydrauliek"
    show [Cardan] if [cf-equipment-part] equals "Aandrijving cardan"
    show [Other] if [cf-equipment-part] equals "Andere"
    
    Plugin Author Jules Colle

    (@jules-colle)

    Looks like you have some kind of custom set up in place? The JS code loaded does not seem to be the latest version of Conditional Fields, but there’s also no version number present. Can you let me know which procedure or tools you used to set up your wordpress installation?

    Thread Starter lextof

    (@lextof)

    @jules-colle Sure, but I’ll have to ask someone else. I’ll let you know. All I can see is version 5.1 for CF7 and version 1.4.1 for CF7 7 Conditional Fields plugin.

    But what I find strange is that one form is working with conditional fields and another one not.

    I’ll let you know more if I find out the integration part.

    Cheers, Alex

    Plugin Author Jules Colle

    (@jules-colle)

    Hey I’m closing this. Please open a new thread if you want me to look into this again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Conditional Fields not working’ is closed to new replies.