Keyword

K2 Front end edit no jquery "chosen" for extra fld

  • Justin Thomas
  • Justin Thomas's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 8 months ago #127273 by Justin Thomas
On my site I have some very large "multi-select" extra fields. In the back-end they are selectable using the jquery bootstrap "chosen" method. Even though I have bootstrap.js and chosen.js in the front-end I can't get the extra fields to use the "chosen" method so they are nearly impossible for the user to handle.

I am opening my edit form in a modal but have made sure that the js is loading into the iframe.

Any thoughts?

Cheers

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #127274 by Lefteris
Hi. The extra fields are loaded by AJAX that's why chosen is not applied to them. First try to add this:
JHtml::_('formbehavior.chosen', 'select');

This will handle all extra fields that are preloaded. Now, in order to apply chosen to extra fields when user changes a category you need to trigger it manually with javascript code.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #180405 by Ivan Vlasov
Please tell me how to run this again with js
Thank you!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum