Editor inline shows value vs label

Editor inline shows value vs label

test42test42 Posts: 21Questions: 8Answers: 0

Hi,

When I inline edit my table, any select field initially shows the labels, but when I select it - it changes the selected to the value and in my case I don't want those being shown since they're different. I noticed on the modal editor it sticks to the labels just fine. Is there a way to force it to only display the label after selected?

Thanks!

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    It sounds like the server is returning the data to be disabled in the table as the value rather than the label. If you have a look at this example, you'll see that as you submit a row, the server returns both the label and value:

    {
      "data": [
        {
          "DT_RowId": "row_32",
          "users": {
            "first_name": "Alexa",
            "last_name": "Wilder",
            "phone": "1-727-307-1997",
            "site": "4"
          },
          "sites": {
            "name": "New York"
          }
        }
      ]
    }
    

    If you can give me a link to your page I can take a look.

    Allan

This discussion has been closed.