• Resolved mpbaweb

    (@mpbaweb)


    Hello
    I have several forms with dependencies where fields are hidden/shown depending on the selection in a yes/no dropdown.
    If I do the following:
    1. Edit a form without an existing dependency and add a yes/no dropdown within a fieldset containing the fields I wish to hide/show based on choice
    2. Set dependencies to show/hide as appropriate , then the dependency does not work

    Is this possibly because the dropdown has a ‘higher’ fieldname? ie created AFTER the fields for which it is trying to control dependency?

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

    (@codepeople)

    Hello @mpbaweb,

    Could you send me the a link to the webpage where is inserted the form, and indicate the field where is defined the dependency, please?

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    Sorry for delay. Was at work.
    This page: https://www.mpba.org.uk/race-hub/circuit-ndc-r3-multi-ndc-r5-20190622-entry/
    Check the tick box ‘Which Type of boat’= Multi
    Check the tick box ‘3.5cc Multi’
    You now see a dropdown displayed : ‘Same details as last race’ (Yes/No) If you select Yes, the 3 other fields Hull,Engine,Transponder should be hidden
    Screenshot of settings: https://www.mpba.org.uk/zzzztest/

    This seems to work ok when you create the yes/no dropdown BEFORE the dependent fields.

    • This reply was modified 6 years, 3 months ago by mpbaweb.
    Plugin Author codepeople

    (@codepeople)

    Hello @mpbaweb,

    I see you are using the version number 5.0.257, but the current version is the 5.0.309

    Could you update your copy of the plugin and let me know if the issue persists?

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    Ok. I updated. The problem is still there. I am now on 5.0.309

    • This reply was modified 6 years, 3 months ago by mpbaweb.
    Plugin Author codepeople

    (@codepeople)

    Hello,

    Please, open a ticket in my private website:

    https://cff.dwbooster.com/contact-us

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    Done

    Thread Starter mpbaweb

    (@mpbaweb)

    I have confirmed through testing that my assumption was indeed correct. The dependent fields need to be created AFTER the controlling field (Have higher numbered fieldnames) in order for the dependency to work.
    Example :
    controlling field <fieldname1>, dependent field <fieldname2> works ok
    controlling field <fieldname2>, dependent field <fieldname1> does not work

    Basically, if you try to add the controlling field after the dependent fields then the dependency does not work.

    I have now found I can work round the problem by cloning the dependent fields so they are recreated with higher fieldnames, so this is not a showstopping bug.

    • This reply was modified 6 years, 3 months ago by mpbaweb.
    Plugin Author codepeople

    (@codepeople)

    Hello @mpbaweb,

    That’s not totally true, I’ve created two forms inserting the fields in different order and the dependencies have worked properly, so, the issue with your form should be more complex than the order of fields.

    Do you have cloned the original form for checking its structure in detail, please? Maybe inserting it in another page?

    Best regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Dependencies’ is closed to new replies.