Issue with Select Default Value

Hello, I am experiencing an issue when trying to use a Boolean value as a default value in a Select widget. The Select widget is configured as follows:

In the above screenshot you can see that the evaluated value of the JS input is: true
But I get the following error: value does not evaluate to type: string | number | { “label”: “label1”, “value”: “value1” }

When I manually input: true
it works but I need it to be hooked up to the JS input.

I have tried putting quotes around the JS input as well but that did not help.

Any help would be much appreciated, thank you!

Hello and welcome to our community!

You could try using this in the Default Value:

    "label": "{{Table__PSH_Objects.triggeredRow.TRACK_CHANGES}}",
    "value": "{{Table__PSH_Objects.triggeredRow.TRACK_CHANGES}}"

There is also this known bug that you can track here: [Bug]: Select Widget's Options Accepts Boolean Value While Default Value Does Not · Issue #17925 · appsmithorg/appsmith · GitHub

1 Like

Hi Amelia, thank you very much for this it was very helpful and solved my issue!