Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on text fields only on checkboxes #3

Open
danbalaban opened this issue Mar 10, 2022 · 4 comments
Open

Not working on text fields only on checkboxes #3

danbalaban opened this issue Mar 10, 2022 · 4 comments

Comments

@danbalaban
Copy link

Hi Matt,

I have this issue where if i set the dynamic visibility to hide a repeater field based on the repeater key (text) nothing happens, but if i try another workaround by adding a checkbox to the repeater field and have the condition say show element if value is checked (Jet Engine specific) then your plugin works just fine.

What could be the issue here?

@rtpHarry
Copy link
Owner

I'm not sure about the answer for this. Have you got your question the right way around?

Based on what I just worked on with #2 I didn't think there was any support with this plugin for checkboxes, until I just released v1.2.beta.2.

When I test it with an "equals" or "not equals" on a JetEngine Meta Field of type Text, it is working as expected.

For example, I'm saying only show the heading if the artist-bio repeater field is not equal to De La Soul

image

And that's working as expected for me:

image

@rtpHarry
Copy link
Owner

rtpHarry commented Apr 7, 2022

I'm going to close this issue now as I didn't understand it, but if you want to add more info and reopen it then please do.

@rtpHarry rtpHarry closed this as completed Apr 7, 2022
@danbalaban
Copy link
Author

I'll take my time to add screenshots so you get a better understanding what's up. I know it's difficult otherwise. Thanks for your time to respond.

@danbalaban
Copy link
Author

@rtpHarry sorry i haven't gotten the notification on your first response so i'll try to explain this in detail as much as i can.

I have a CPT called Projects and a single projects template which uses repeater fields to show project features which vary from project to project. In total there are ten different project features (details & finishes, awards & recognitions, parking deck details, etc) and each project uses usually two out of those ten features, so the ones which are not used i want to dynamically hide if the repeater field is not used.

4-4-2022_39S24sx10F

I would like to skip adding the checkbox field to each repeater field because it's just unecessary (but that does work in hiding the element with your plugin) and find a way how to set the visibillity not to show empty repeater elements.

4-4-2022_s2CyL4dzdG

Whatever i try with the conditions it just doesn't work, except if i add an additional checkbox in the repeater field and set the conditions if value is/not checked (ideally i would like to avoid that).

Any idea what can be done?

@rtpHarry rtpHarry reopened this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants