Toggle not fully working

Toggle only works partly. It hides the content, but not the group. What am I missing?

Collaps when hidden is activated for the group. I have also tried to use workflow hide instead of toggle.

Are you 100% sure you’re referencing the right element? You don’t have another element with the same name or perhaps another parent container that holds “e_person_map”?

Not what I am aware of :thinking:. When clicking the x close icon I want to hide the reusable e_person_map.

How about on the page that has the instance of this reusable? Is the instance inside another group?

e_person_map is within a group with a different name. In the workflow in e_person_map I am not allowed to select the parent group.

Ok, that group might be the element you’re seeing (possibly). Add a condition to that “Group Person Map” (on the page) to turn off its visibility when e_person_map isn’t visible, and make sure that group’s collapse setting is also enabled. Try that.

Nothing happens when I have added the condition and clicks on the marker on the map.

That first condition may be conflicting. If the “Group Person Map” data source always has a User, then that condition is going to keep it visible.

ok, so what do I do to fix the issue? The Group Person Map should always have an user.

Try using a custom state instead to manage the visibility. This way you don’t conflict with other visibility requirements.

For example, create a yes/no custom state on the reusable element itself called “show map details” (or whatever name you want). The default value is “yes”

When “group close” is clicked, set the state’s value to “no”.

Whatever workflow you have to show the contents should set the state’s value to “yes”.

Now, for “Group Person Map”:

  • Make sure it’s hidden by default
  • Modify your first condition so it says “when this group’s User is not empty AND ‘show map details’ is yes” > this element is visible
  • Remove the second condition we tried from earlier troubleshooting (“e_person_map isn’t visible”).

Try that. So what’s happening is INSTEAD of the toggle action, you’re changing the a custom state’s value to yes or no. That yes or no will dictate the visibility property through the condition.

Thank you.

I tried it, it worked kind of even if I didn’t manage to do everything you wrote.

When clicking the map marker it showed everything and when I clicked the x (close) icon it hide everything. So far so good. The problem was, when I clicked the map marker again nothing was shown and I had to refresh the browser to reset everything again. Then it worked.

I didn’t manage to add ‘show map details’ to the Group Person Map condition since it can not find ‘show map details’ even if I tried 1. to add the custom page to page with the Group Person Map group and 2. added the custom page to the repeated group e_person_map page. Not sure exactly where to add the custom state when you say ‘on the reusable element itself’ and to make it visible on the conditions page for the Group Person Map.

What am I missing?

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