fill fields with a field type "select "

fill fields with a field type "select "

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

Hi, I have a problem with a filling of fields. For example Selecting a field of type "select " few fields are automatically filled.

As is done in the edit

Thank You.

Answers

  • GMorrisGMorris Posts: 4Questions: 1Answers: 0

    I couldn't quite understand your question, however if you are trying to make rows with select element sortable its pretty simple. just add a hidden span containing the value and update the value with onchange event bound to the select. Datatables is able to sort the span element by value. This is an example of how i did it

    <td>
        <span class="hide">{{item.approved}}</span>
        <select class="edits no-margin approval" data-id="{{item.id}}" data-selected="{{item.approved}}" onchange="updateApprovalStatus('{{item.id}}');">
            <option value="1">Yes</option>
            <option value="0">No</option>
        </select>
    </td>
    
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I think we'd need a link to a test page showing the issue @rrzavaleta.

    This example shows the options for a select field in Editor being filled in.

    Allan

This discussion has been closed.