Editor updates select type when inline update another field

Editor updates select type when inline update another field

8ZyfGVg8ZyfGVg Posts: 8Questions: 2Answers: 0

Hi

I have an example which I included a select type field, and for some reason when I inline update another field for the first time, that select field gets update at the same time.
It will update with the first record on that select list.

Here is the test site.
http://apptest.ecoresource.ca

Answers

  • 8ZyfGVg8ZyfGVg Posts: 8Questions: 2Answers: 0

    Perhaps this is a matter of preset the fields with the current values on the list.

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    Your last_name field contains only:

    type: "select",
    "options": [{"label":"Smith","value":"Smith"},{"label":"Doe","value":"Doe"}]
    

    So if you attempt to edit anything in that row, and the value for the last name isn't in that list (i.e. it isn't either Smith or Doe) it will select the first value that is available to it.

    The inline editing actually places the whole row into an edit, not just the cell in question, although normally that is all that is updated.

    Allan

  • 8ZyfGVg8ZyfGVg Posts: 8Questions: 2Answers: 0

    I figured out a workaround using these entries,

    placeholder: "NA",
    placeholderDisabled: true,
    placeholderValue: 0,

    This way I can treat the data before updating on the server.
    Thanks.

This discussion has been closed.