Filter and remove duplicates contents of Dropdown list in create new
Filter and remove duplicates contents of Dropdown list in create new
ginacargile
Posts: 17Questions: 3Answers: 0
Based on the current code I have listed here:
https://datatables.net/forums/discussion/37068/saving-a-dropdown-field-value-and-and-id-in-the-same-table?new=1
My dropdown list has values like "Door", "Door 1", "Front Door", "Front Door 1", "Side Door 1" and I need to cut the # value off the end's and then remove duplicates.
I've looked at GetFormatter for server side. I figured it would have to be done client side, but, what event and how exactly?
Thanks!
This discussion has been closed.
Answers
Are you using the
Field->options()
method to get the options, or something else? There is a formatter option for the options, which you can use to modify the labels.Allan
Yes, I'm using field .options. I don't know how to use the formatter to format the values the way I want. ?
I didn't realize you could do an inline select! I found this link.
https://datatables.net/forums/discussion/27856/editor-net-field-options-method
If there is a better way, please let me know.
Full code here:
Thanks!
Thanks
For complex queries that looks about as good as it gets :-)
Allan