• Resolved masugata

    (@masugata)


    Hello! V1.4. I added to all my groups but don’t seem to clear selections.
    Am I missing something?!?
    eg. [group my-group clear_on_hide] … [/group]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    It’s working fine here:
    https://conditional-fields-cf7.bdwm.be/clear_on_hide/

    Could you guys share a link?

    Thread Starter masugata

    (@masugata)

    Hi Jules,
    If Class attribute is added to Checkbox, it won’t clear.
    eg. https://www.rococo.salon/test16082018/

    P.S. Great plugin, can’t wait for Pro version!

    Thread Starter masugata

    (@masugata)

    BTW, email will pick up these selections in “hidden” Group. So, it’s not clearing checkboxes with class, IMO…

    Thread Starter masugata

    (@masugata)

    In my case (styling label element), CSS was the problem!

    <BAD>
    .example-class input {
    display: none;
    }
    <FIX>
    .example-class input {
    position: relative;
    z-index: -9999;
    }

    However, now, those Groups with “clear_on_hide” won’t apear in email…

    Thread Starter masugata

    (@masugata)

    Now, email is not picking up Groups with “clear_on_hide”. Here is a simple test without any class/id. If I remove “clear_on_hide”, email picks up ok! Help!

    [checkbox* checkbox-0 exclusive “Option 1” “Option 2”]

    [group group-A clear_on_hide]
    [checkbox* checkbox-1 “a” “b” “c”]
    [/group]

    [group group-B clear_on_hide]
    [checkbox* checkbox-2 “d” “e” “f”]
    [/group]

    [submit “Send Email”]

    Message Body is:
    [checkbox-1]
    [checkbox-2]

    • This reply was modified 6 years, 6 months ago by masugata.
    • This reply was modified 6 years, 6 months ago by masugata.
    Plugin Author Jules Colle

    (@jules-colle)

    So why don’t you just remove clear_on_hide?

    I have updated the example here: https://conditional-fields-cf7.bdwm.be/clear_on_hide/ (Press the send button to preview the mail message. It is working exactly as I designed it. We might have a misunderstanding about the functionality you expect though.)

    Thread Starter masugata

    (@masugata)

    ok, then delete this Topic! no point confusing other users!

    Plugin Author Jules Colle

    (@jules-colle)

    I can’t delete topics. only moderators can do that. I’m interested in learning what you expected from the clear_on_hide option though.. could you explain why you used it in the first place?

    In my opinion you would almost never need this option, but there were some people that insisted on adding the option because they didn’t want to have the information in hidden groups being processed by the server side script in any way.

    Thread Starter masugata

    (@masugata)

    This is what I (surely many people) waiting for!
    I manamged this to work. In “Mail”. CF7 is text format sensitive, I kept all [group-1]xxx[/group-1] in 1 line, all fixed.
    Thank you, Jules!

    Plugin Author Jules Colle

    (@jules-colle)

    You’re welcome! Feel free to leave a review

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘“clear_on_hide” working?’ is closed to new replies.