Hello all,
I currently have the custom action shown below to generate a random number between 0 and whatever max result I set (works great). I also have an integer App State variable called "indexNumber" that gets set on button press to the Number of List Items from an API call that can change based on whichever filters are chosen by the user. I would like to replace the max value (3 in this example) to whatever the integer value from the AppState variable "indexNumber" is at any given time but I have not found a way to do this. I have tried variations of FFAppState().indexNumber but results in error every time. I am not very confident in the formatting/syntax or how to appropriately define that variable in the existing action code.
Any help would be greatly appreciated... or a better method altogether is welcome, basically just trying to dynamically set a constraint on the random number range based on the number of list items returned from page API call. Thanks!