I have used:
<div class="LEO_hdrMemberMenu">{{#IsNLFanOpen}}Newsletter and Fan Alumni (Open){{/IsNLFanOpen}}{{^IsNLFanOpen}}Newsletter and Fan Alumni (Collapse){{/IsNLFanOpen}}</div>
to condition a collapse wrapper header in a page include and it works great.
However when I try to do the same in the collapsible wrapper that is not in a page include. The header always reads "Collapse" and it does not matter if I set the default value to on or off.
https://drive.google.com/file/d/0B409lhd9sYDcRFNXM0ZfbzVnU0k/view
<div class="LEO_hdrMemberMenu">{{#IsNLFanOpen}}Newsletter and Fan Alumni (Open){{/IsNLFanOpen}}{{^IsNLFanOpen}}Newsletter and Fan Alumni (Collapse){{/IsNLFanOpen}}</div>
to condition a collapse wrapper header in a page include and it works great.
However when I try to do the same in the collapsible wrapper that is not in a page include. The header always reads "Collapse" and it does not matter if I set the default value to on or off.
https://drive.google.com/file/d/0B409lhd9sYDcRFNXM0ZfbzVnU0k/view
-
8,900 Points
Posted 3 years ago
Mark DeSimone, Official Rep
-
12,352 Points
Hi Bill. I've just tried adding a UI-only checkbox field to a page of mine, and found that the Default Value won't be set to False unless you check, then uncheck the box. It's not straightforward behavior, but this may be why the render condition isn't seeing that initial unchecked/false value. It's the difference between a False value and a [null] value. If you could try checking and unchecking the box under the field's Default value settings, let us know if that clears up the issue.
(Edited)
-
8,900 Points
In a collapsible wrapper I tried to toggle OFF "Before first open" and then ON "After First Open" but still no results. I also tried reversing the ON and OFF with no results.
(Edited)
-
3,068 Points
was there a resolution to this?
-
3,068 Points
sorry, i am slow. just realized I can set !=blank. for first load. It still doesn't fix the toggle grid in the wrapper once it is rendered the first time.
Mark DeSimone, Official Rep
-
12,352 Points
Arne-Per, thanks for closing the loop and keeping this going. Do you mind restating the part of this that's still unresolved so we can better understand the scenario?
-
3,068 Points
hey Mark. I think what was happening is that even though not rendered because the wrapper wasn't the toggle was working with the component as on to start. I ended up using two UI only checkboxes. Would be nice if we could have a don't render component on load.
Mark DeSimone, Official Rep
-
12,352 Points
Thanks for letting us know how you were able to resolve this. I agree that having more ways to specify a component's initial state would be very nice. You're more than welcome to share this as an "Idea" on the community, by the way.
Related Categories
-
Skuid on Salesforce
- 2745 Conversations
- 225 Followers