Save location object from LocationBased schema?

The LocationBased schema passes a location object to its handler to generate a list of Options, and then saves the selected option Value in the config to be referenced later.

I would like to be able to access this location object in the future to pull the timezone property, but this does not seem possible. Is this something that could be added (basically a dictionary of all LocationBased schema objects containing the location objects as the values)?

The schema.Option value can be any string you choose – including a json. Since the handler takes the location object as a parameter, you could extract the timezone and add it to the option.

I did something like this in one of my apps, where I needed to return three pieces of information about each option.

1 Like