Code Monkey home page Code Monkey logo

Comments (7)

rtpHarry avatar rtpHarry commented on August 30, 2024 4

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.

rtpHarry avatar rtpHarry commented on August 30, 2024 1

OK its up at https://github.com/rtpHarry/jet-engine-repeater-values/releases/tag/v1.2.beta.1

from jet-engine-repeater-values.

tanyabendis avatar tanyabendis commented on August 30, 2024

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.

rtpHarry avatar rtpHarry commented on August 30, 2024

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:

image

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:

image

This then lets the selected values be displayed in normal situations:

image

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:

image

Defined as mon, tues, wed:

image

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:

image

And set the value to point at the checkbox name:

image

As you can see for this one its set to the contains as "mon":

image

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:

image

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.

tanyabendis avatar tanyabendis commented on August 30, 2024

Thank you! @rtpHarry this works great :D
Screen Shot 2022-03-26 at 17 12 51

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:
Screen Shot 2022-03-26 at 17 13 34

from jet-engine-repeater-values.

rtpHarry avatar rtpHarry commented on August 30, 2024

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.

pauserratgutierrez avatar pauserratgutierrez commented on August 30, 2024

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.
image
Red -> repeater, Green -> checkbox

image

from jet-engine-repeater-values.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.