I have a repeating group to display the history of API call answers.
I tried many things so far, all I can do is put the API answers in a list inside custom states of any element, but they not show during runtime, only on debug mode as property of the element. I also can add as text list inside the RG, but also not displayed.
I tried many approaches, here are the steps
First approach Steps to reproduce:
- Create a RG, define type as text and source as custom state “Chat History”
- link a btn to API call by workflow, trigger API, set custom state “Chat History” and append API results to RG list of text as plus item with the text answer of the previous state
Second approach
It’s basically the same as the first one, but I tried to create a Data Field messages inside User data type, to use this a data source, same result not being displayed
Third Approach
I tried to create a Request Data Type and tried to use it as a list of attributes of a custom state, but I could not define its value in a set state because it said that the value was empty but expected a list of Requests.
EDIT:
Just for testing purposes, I tried to put a text field to display only the last API call result, the same problem appeared, as if the problem isn’t with RG itself, but with the workflow. I could see the API results in element properties but it was not displayed. On devtools the text was not present also.
EDIT 2: MADE IT WORK
I needed to add a text element inside the RG as mark its appearance as “current cells text”