Hi all,
I’m using a reusable element. In this page I’m using custom states to store infos.
The reusable element is embedded in a page. Is it possible to get the custom states from this embedded reusable element?
thx
jupxi
Hi all,
I’m using a reusable element. In this page I’m using custom states to store infos.
The reusable element is embedded in a page. Is it possible to get the custom states from this embedded reusable element?
thx
jupxi
Hey
Pls provide some screenshots and clearer explantion and you will get some help
You can access the custom states of a RE from the page it’s embedded only when the custom states are on the RE itself and not on any of the elements that composed the RE.
When setting the custom state, make sure your setting it to the reusable element (parent) itself and not to a component within it. From your page you can access the custom states set for the reusable element, but not custom states set to any of the components within the reusable element.
Doesn’t work. I dont know how to access the custom state.
Here’s my Reusable Element (with a custom state on the main RE’s page):
And here’s the main page where the RE is embedded in a Repeating Group:
Now in this main page I want to insert a text (outside of the RG) and want to display the custom state from the embedded RE (date). But I can’t find the RE’s custom state to display the date as text:
I dont understand it… please help.
Best
jupxi
It seems that from the page you can’t access the custom state of a Reusable Element that is within a Repeating Group. In another forum, there was a discussion around a work around for this, which might be helpful for your use case as well - Get Custom State from Reusable Element within Repeating Group - #6 by eli
I dont understand it.
Such a big problem to do this, really?
I don’t understand how to achieve this by using url parameters.
Okay… I can ready out the url params in the RE but how to SET the url param (to current page??)
I dont understand this technique.