How to edit Duplicate drop down values

How to edit Duplicate drop down values

ziv@kpmbro.comziv@kpmbro.com Posts: 73Questions: 28Answers: 4

Hi Allan.

I want to edit the dropdown options after pressing duplicate..

just like here:
https://editor.datatables.net/examples/api/duplicateButton.html

i want to show the key next to the title.
for example:
now it showing like this:
Edinburgh
London

and i want to show like this:

1 - Edinburgh
2 - London

How can i do that?

Thanks

Answers

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

    If you want to do it on the client-side, the update() method of the select field type can be used to update the list of options at any time.

    If you want to control the rendered label from the server-side when the data is loaded, this section of the documentation will be useful.

    Allan

This discussion has been closed.