I have saved a list of files from a file uploader using custom state, then these files are saved as a list (add list) to a field (PDF) in a database type (“Lesson”). So I have a list of pdfs saved in a field of a database type.
When I try to display this list in a RG, they appear in the same cell separated by a comma (se image). I would like to have them displayed each in its own cell.
Here is what it looks like:
And here is the text element within the RG:
What am I doing wrong?
Hi there, @rudibakken… what is the data source of the repeating group? If you set the data source to the PDF list field and then set the text element in the repeating group to display the current cell’s text, you should get the desired result.
Hope this helps.
Best…
Mike
Hi @mikeloc , the data source is ‘Lesson’ which is a data type. As I see I can’t set the data source to the PDF list field, as this field belongs to the above mentioned data type - and it doesn’t appear as an option that I can choose when I want to set the data source.
I forgot to mention that all the data in the group where I want to display the repeating group is being pushed (displayed) from another group through a workflow - but I guess this is not the issue because I can access all the data - it’s just that list of PDFs that is shown within a single cell in the RG, instead of each pdf in a separate cell…
Could it be that the problem is that when I save the PDF’s from the custom state, it saves as a list.
Here is the workflow:
You want to see the PDF files associated with a specific lesson, right? The data source would need to point to a particular lesson’s PDF list field.
Thank you so much for pointing me in the right direction @mikeloc
The RG had the wrong Type. I changed it from ‘Lesson’ to ‘File’ and then I was able to point to the PDF in the data source section.
Thank you!
1 Like