Set a custom value alongside a corresponding custom label in select

Hi.

I understand the 'value' in retool's select can be set in script when custom value is enabled. As data in select normally comes as label-value pairs, can the 'label' be set as well?

Hi there,

Thanks for reaching out to us!

I don't believe there is a direct way to update the label in a JS query compared to the values. The next best option would be to use a temporary variable and set that as the label value. From there you can set the value of the variable to whatever you'd like!