• Resolved medcourse

    (@medcourse)


    Hi,

    I am having trouble with conditional fields.

    I have a couple of forms whereby I have a checkbox field with “what information would you like to submit/update?”, so that the form isn’t too long for people who don’t want to submit this info.

    I have this working using conditional fields. However, when the email notification comes through, the information in the conditional fields isn’t being outputted, nor is it being logged in the “submissions” in the forminator plugin.

    I have looked at old support entries and came across this fix – https://gist.github.com/wpmudev-sls/67a4e074efcd965abcd663584ab809cc – which I uploaded as a mu plugin via FTP. This hasn’t helped.

    I have also tried changing it from “show field if X is X” to “hide field if X is not x” but this didn’t work.

    I have exported the form – find it here https://drive.google.com/file/d/1JW6i_fIWwbLK6G5EajwnF7GO-j4UI8VN/view?usp=sharing

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @medcourse

    I hope you’re well today!

    I’m not sure if you have shared correct form as I don’t see “what information would you like to submit/update” field/checkbox there and on page that you linked to no form is loading for me.

    But I’ve checked the form that you shared and I’d like to ask you to test a small change:

    – do edit all you checkbox fields
    – and change their option values (values, not labels) manually to be all lowercase and don’t include spaces.

    For example: “Emergency Medicine” option value would become “emergency-medicine”.

    – then you will need to update conditions again for the fields that are visible based on those checkboxes.

    Give it a try please and let me know if it solves the issue for you or not.

    Kind regards,
    Adam

    Thread Starter medcourse

    (@medcourse)

    Hi Adam,

    Apologies – it was “additional listing features” that was the checkbox.

    The fix worked! Thanks for your help on this.

    Does the form still not load for you? It should load via ajax, so it starts as a blank but 1-2 secs later should load up. If it doesn’t load for you I may need to fix it!

    James

    Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @medcourse

    I’m happy to hear that the fix worked!

    As for the form not loading – it’s still not loading but I just checked again the form as you exported it and… it’s set to “Enable logged in submission only” (in “Behavior” settings of the form) so it’s expected that I don’t see.

    Due to that setting it would only show to logged-in users and when I’m visiting it on your site I’m obviously not logged-in, hence it doesn’t load.

    So all in all, if it’s meant to be used by logged-in users only, it’s fine. The copy that I tested on my own setup (from your export) loads just fine.

    Best regards,
    Adam

    Thread Starter medcourse

    (@medcourse)

    Ah – I had removed my content restriction but forgot to take that setting off.

    Appreciate the help!

    James

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Conditional fields not output in submission’ is closed to new replies.