Editing custom states in a nested repeating group

Hi all

Apologies for posting again, I haven’t had much luck to date seeking help on this forum, so thought I would try to re-write my post to make it somehow clearer :slight_smile:

I also made a loom video here:
https://www.loom.com/share/ea48a822bdf74cdd82d48d36fa113917

The link to my page:

I have a feeling I may need to give read access to my app to properly demonstrate how I have set things up…happy to do this if someone is kind enough to share their time.

WHAT I DO

  • I generate a list of datetimes using CG Pro’s Util4 “function"

  • I then display this list in 2 repeating groups - “parent_RG” & “nested_RG"

  • The logic I use for each of these RGs can be seen in the screenshots

  • As the user clicks on “datetimes” in the nested RG…
    a) I toggle the custom state between “yes/no” in order to conditionally format the text element
    b) I update “custom state lists” for both the parent & repeated RG using the operators of “plus item” & “minus item"

MY CURRENT CHALLENGES

My current challenges relate to the clear buttons that I have implemented at the “parent RG” & “nested RG” levels.

The clear button at the “parent RG” level should:

1. Reset all datetime text elements to custom state “no”, which will then in turn reset the text element’s background colour
2. Clear all dates in the “parent RG” custom state list
3. Clear all dates across every day in the “nested RG” custom state list

Here - I am seeking help on: “item 1” + “item 3”.

The clear button at the “child RG” level should:

1. Reset datetime text elements (in the current day) to custom state “no”, which will then in turn reset the text elements’ background colour
2. Remove only those dates in the current “nested RG” custom state list from the “parent RG” custom state list
3. Clear all dates in the current “nested RG” custom state list (i.e. those for that particular day)

Here - I am seeking help on: “item 1”.

Any help is appreciated.

Thanks

1 Like

I managed to solve this using:

  • intersect with
  • contains / not contains in my custom state

If anybody would like further info on this, happy to share! :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.