tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

Store separate value of tag (e.g ID) in hidden field(s)

Open jordanful opened this issue 12 years ago • 3 comments

Love the plugin — thanks guys.

If there's a way to do this, please direct me to the docs: with Typeahead, it'd be great if tagmanager had an option to add a selector for a hidden field that stores the ID (not the value) of the autocompleted term (preferably in a comma-delimited list, but that could be configurable too).

I tried using multiple instances of tagmanager to achieve this, but they don't stay in sync (i.e. if I delete a tag, the corresponding ID in the other field doesn't remove itself).

Thanks again.

jordanful avatar Aug 30 '13 00:08 jordanful

I'd like to have it too, but it seems to be not possible. With the help of events from this pull-request: https://github.com/max-favilli/tagmanager/pull/111 it's possible to synchronize manually.

ghost avatar Aug 31 '13 14:08 ghost

@esspe, thanks. This looks to be exactly what I'm looking for — essentially callbacks that I can listen for. It'd be great to see this integrated in 3.0 (with typeahead.js support).

jordanful avatar Sep 01 '13 20:09 jordanful

+1 Really need this:)

Also would be awesome if we could generate inputs like: <input name="tags[]" value="2"> <input name="tags[]" value="4"> <input name="tags[]" value="6">

... for easier handling.

jonkristian avatar Sep 13 '13 14:09 jonkristian