Iterating Select values in template from other Document (Object + Key)

Hey Srini,

At the moment it isn’t possible to define a label and a separate value. The @features-team have an open feature request for this, if/when we ever make a change to this behaviour we’ll update you in this thread.

For now you will need to build the values into your website application. Sorry for the inconvenience.

One solution might be to add values like:
Downtown warehouse [33]

Then in your project use regular expressions to get only numbers inside the brackets:

or js slice to get last 2 digits of the id if it’s always 2 digits"

selectfield.slice(-2);

I know it’s not a great solution but it might help.

Let me know if you have any other questions.

Thanks.