Comments (7)
OK yes I understand the situation now, I will set something up on my test environment this evening and see what I can come up with.
from jet-engine-repeater-values.
OK its up at https://github.com/rtpHarry/jet-engine-repeater-values/releases/tag/v1.2.beta.1
from jet-engine-repeater-values.
Hi @rtpHarry - let me know how it is going? Or if I should come up with another solution. Thank you
from jet-engine-repeater-values.
I've been looking into this today and I've put something together which will now work with checkbox fields.
Here is a proof of concept:
After a lot of experimenting, the way that I have done it is just a simple check. I have modified it so that if it detects an array of values, which the checkboxes is returned as, then it will attempt to turn it into a comma separated string:
This then lets the selected values be displayed in normal situations:
And also, that comma separated list is then understood by the dynamic visibility "contains" feature, so it now works.
For example, with a repeater checkbox like this:
Defined as mon, tues, wed:
You can set up a dynamic visibility "contains", and ignore the advice about jetengine checkbox fields in the text below it. Just select my "JetEngine Repeater Field" dynamic tag:
And set the value to point at the checkbox name:
As you can see for this one its set to the contains as "mon":
But you can also add comma separated values and "contains" will split them out and test each one, for example my mon or wed example:
So I'm going to release this now as v1.2.beta.1 and tag it as pre-release.
It seems like it will solve your immediate problem but I want to have a bit more of a think about this and how best to implement as it feels like a bit of a hack at the moment.
If I change the way I do things in the next release I'll let you know on this issue.
from jet-engine-repeater-values.
Thank you! @rtpHarry this works great :D
One more question if you have a chance? Is it possible for it to work in front end forms using Jet Engine Forms:
It is not saving the checkbox values of the repeater key:
from jet-engine-repeater-values.
I'm glad the changes got things moving forward!
I've not found any time to look into the follow up query yet. I've never used Jet Engine Forms in any my projects so it's been a big task to start experimenting with that and figure out how it saves its data and whatnot, so I just haven't found a spare block of time to look at this.
It sounds unrelated to my plugin though. This could be posted on the Crocoblock Facebook page to see if people with Jet Engines Forms experience know how to add repeater fields into the forms? Or even contacting Crocoblock directly in this case?
from jet-engine-repeater-values.
Hi @rtpHarry I need to show/hide images depending on the value of a checkbox. I can't figure a way to do it using your plugin. The checkbox is inside a repeater field.
Red -> repeater, Green -> checkbox
from jet-engine-repeater-values.
Related Issues (15)
- Background images don't work HOT 10
- Can we use with JetEngine in 2023 HOT 2
- Clarification around usage HOT 1
- Elementor 3.16.0 HOT 2
- Display Heading only if repeater field contains content
- JetEngine - Repeater field values bug in elementor 13.6 version
- repeater background color issue HOT 3
- Not working on text fields only on checkboxes HOT 4
- I tried using your plugin but it seems that it is not able to filter the repeatable field in dynamic visibility. HOT 4
- Can't manage to compare values from a repeater field to sort them HOT 2
- Ok, for the dummies HOT 2
- Converting JetEngine checkboxes properly
- When using a repeater image Field as a background of a column or section, it shows the just image of the first one. HOT 3
- repeater values update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jet-engine-repeater-values.