Is it possible, in a text field, when displaying data dynamically, to set the Thing’s field that I want to display dynamically? It’s easy to set the Thing itself dynamically from the Parent object, but can I set dynamically the field to display? For example, if I have a Product data type with Color, Size, and Price fields, can I use dynamic information to choose which of those three fields to display, taking information from the parent group? I hope that’s clear!
For more details on my use case, I am trying to build a page that displays a long set of product specifications, that are broken down in different categories (70+ fields total, so I don’t want to set a fixed layout that I have to change every time I add or remove a field).
How I’m doing it now:
- I have a data type “Specification Category” that has the 6 main categories of product specification (for example Electrical, Material, Waterproofing, etc). .
- I have a data type “Specification Item” that has the different items and the related category.
- I have a data type “Product” whose fields are all of “Specification Item”.
- On my product display page, I have a Repeating Group to display all Specification Items, nested inside a Repeating Group to display all Specifications Categories. I’m able to display all Items inside their Category neatly, but I’m struggling to then access the value of the fields for the Product I’m displaying.
Another option would be to break up the product information per category and have a “master” product data type pointing to all 6 sub-objects, but I’m trying to see if there’s a way to do it without that as I would like to keep my product database as flat as possible.
I’ve been searching on the forum for a while but can’t seem to find a good answer for that problem. Thanks for the help!