• Resolved Doc Young

    (@ijyoung)


    I was asked to start a new post for this thread.
    I have a series of dropdowns featuring counties of England, Scotland, Wales and NI.
    Until December of 2018, this worked a treat but now it just picks the first option on the last dropdown.
    Help to resolve this option would be most welcome.

    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)

    Seems to still be working fine here. Could you record a video to illustrate the problem?

    Thread Starter Doc Young

    (@ijyoung)

    Not sure how you tell that it was working as you can only tell by applying.
    The form seems to work on the public site but only selects the first field of the last condition – which is Wales
    After submitting, the form is sent to a custom DB.

    Plugin Author Jules Colle

    (@jules-colle)

    Is the email working? Which DB plugin are you using?

    Thread Starter Doc Young

    (@ijyoung)

    Yes
    Not using a DB plugin as I needed something more robust.
    The custom table is populated ok, and the conditional was working ok until the latest update.
    I had assumed that I could use the location field to dump to DB but wasnt recognised so had to use the conditional fields.
    As per
    $location = $formData[‘location’];
    $scotland=$formData[‘CountiesScotland’];
    $england=$formData[‘countiesengland’];
    $wales=$formData[‘countieswales’];
    $ireland=$formData[‘NIcounties’];

    and then
    ‘Location’=>$england,
    ‘Location’=>$scotland,
    ‘Location’=>$ireland,
    ‘Location’=>$wales,

    Thread Starter Doc Young

    (@ijyoung)

    Update using just $location, selects the name of the dropdown where town selected

    Thread Starter Doc Young

    (@ijyoung)

    problem solved, I hope

    Have changed the code to
    if(!empty($formData[‘CountiesScotland’])){
    $location=$formData[‘CountiesScotland’];} (and same for other dropdowns)

    and then ‘Location’=>$location

    Thanks for looking at. It helped stimulate the brain to come up with a solution

    Plugin Author Jules Colle

    (@jules-colle)

    NP. glad you solved it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conditional Field stopped working’ is closed to new replies.