How to edit Duplicate drop down values
How to edit Duplicate drop down values
ziv@kpmbro.com
Posts: 73Questions: 28Answers: 4
in General
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
This discussion has been closed.
Answers
If you want to do it on the client-side, the
update()
method of theselect
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