rtpHarry / jet-engine-repeater-values

Access JetEngine repeater values via Elementor Dynamic Tags
GNU General Public License v3.0
40 stars 10 forks source link

Not working on text fields only on checkboxes #3

Open danbalaban opened 2 years ago

danbalaban commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.

danbalaban commented 2 years ago

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 commented 2 years ago

@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?