Hi,
I think I know the answer, but… is there a way to initialise a custom state to a dynamic value? Most usefully, when that custom state is within a Repeating Group?
I know how to set an initial value for page level elements (using Page Load event), and within a repeating group I know how to change the custom state for a particular row when an event happens within the row eg. when a field is changed, but I have not found any way to initialise a custom state-per-row within a Repeating Group for each row before the user does any interaction. This seems like a major omission, that could likely be solved if the default value of a Custom State were dynamic rather than static?
In my context: I have a series of rows, and each row has a calculated default colour (based on some fields on the row) which you can override. I want to show the current colour (calculated or overriden) in a Reusable element which when clicked opens a colour override menu. I have a Custom Event which will calculate the default colour and set it in a Custom State on the row if the default should be used, and everything works once the user starts interacting with the row - but on page load, I can’t make it show anything but a default.
Any ideas? Thanks!