I can’t find anything online about the ability to put some inline conditionals in raw values. I’m trying to change the “Display Template” to only show values if they’re useful in a O2M relationship in the data studio.
My model is like Parent (status, children) O2M => Child (status, file, toggle, date1, date2) and if I do {{status}} {{file.$thumbnail}} {{date1}} {{date2}} on the Child then when dates are empty it shows as “--” when listing the children on the Parent.
What I’d like to do is set the display as {{status}} {{file.$thumbnail}} {{toggle ? ““ : date1 + “ - “ + date2}} so that it only optionally displays properties based on the values of other properties
The only workaround for this I can think of is to make a Flow and an additional field that on-save does all this logic and creates a single string label for me to display in the template. This may work but is pretty inflexible when it comes to showing things like thumbnails so I’m asking here to see if there’s any known ways to do this or a feature request ticket for inline logic in display templating.
Note I experimented with Conditional on the Parent but realized it was the incorrect path (someone else used it as a workaround for dynamically changing the Display of toggles, but that’s changing the entire Parent form not the Child row shown).