getting null values in data actions of select dropdown

I have added the image above , earlier it used to give proper yes, no, deffered in dropdown , but now getting NULL , is this looker issue?

Hey SachinS!

I tried to reproduce this internally by copying your code exactly and I ended up encountering the same problem as you!

Then I compared it against some working examples that I have and noticed one small change that ended up being the fix.

If you make sure each of your option parameters has a name AND a label, like so, that should fix the issue:

option: {
          name: "No"
          label: "No"
        }

Here’s my full code and the result in the UI:

form_param: {
        name: "annotation"
        type: select
        label: "Feeback"
        default: "No"
        description: "Please provide feedback"
        option: {
          name: "No"
          label: "No"
        }
        option: {
          name: "Yes"
          label: "Yes"
        }
        option: {
          name: "Deferred"
          label: "Deferred"
        }
      }

As far as why it was working before for you without the labels - I’m not exactly sure. If you are certain it was working before it could be worth messaging Looker support who can look into it further and determine if it is a bug.

Hopefully this helps in the meantime!