Skip to main content
2 votes
Accepted

Update List field rendering after ajax update

If you're using ChosenJS, which is the fancy select library that Joomla 3.x uses, then you'll need to manually instruct it to update the list, because it doesn't use any observers by default. You can ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

custom form list field add disabled options - create optgroups

My question could be solved by the comments of mickmackusa and Sharky. I have finally extended the JFormFieldGroupedList as follows: defined('JPATH_PLATFORM') or die; JFormHelper::loadFieldClass('...
Marco's user avatar
  • 691
2 votes

Remove options of the Select with jQuery, replace these with new ones is working but how to update "chzn search" div with jQuery?

It is working with this one: jQuery('#jform_identificator').trigger("**liszt**:updated"); Even with the 'z' in liszt', I thought this must be a typo, but not!!! I had the one which Marco ...
user2363969's user avatar
2 votes
Accepted

Remove options of the Select with jQuery, replace these with new ones is working but how to update "chzn search" div with jQuery?

Thats because of the chosen.js - i had the same question a few weeks ago : Update List field rendering after ajax update For chosen you can call: jQuery('#jform_identificator').trigger("chosen:...
Marco's user avatar
  • 691
2 votes

How to filter and reduce drop down select box

Simple. You'll want to utilise jQuery Chosen which is shipped with Joomla. Target a specific select box: <?php JHtml::_('formbehavior.chosen', '.myclass'); ?> <select class="myclass"> ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

Use Ajax to refresh available options

You put a lot of work into this already as I see. Since you preload the Form with all the options, you do not have to load the options again and again from PHP (from the server). So according to my ...
Zollie's user avatar
  • 2,956
1 vote

select onChange changed to on-change after saving Joomla 4.1 form

Well, in fact, I found the issue. It is related to some settings of the editor. I will contact the developer. [EDIT] Developer contact is unavailable if you don't have a paid subscription etc. Anyway,...
Phil91's user avatar
  • 31
1 vote
Accepted

Joomla DB where statement not works as expected

JDatabaseDriver::quoteName() is for quoting SQL identifiers. Use JDatabaseDriver:quote() to quote and escape strings. $query->where($db->quoteName('element') . ' = ' . $db->quote('...
Sharky's user avatar
  • 12k
1 vote
Accepted

How to select records one by one using JDatabaseQuery

There are quite a few methods of Joomla's db driver that are not documented on the doc page. The API summary page for 3.8 is here https://api.joomla.org/cms-3/classes/JDatabaseDriver.html What you'...
jamesgarrett's user avatar
  • 3,339
1 vote
Accepted

How to query a table column for values that start with a non-alphabetic character?

First of all, do you actually need a where clause? Are you really trying to exclude any names? What are the actual exclusions you want? If you don't mean to filter any names, then you can simply ...
FFrewin's user avatar
  • 19.8k
1 vote

Select+Checkboxes fields = query a Database

RSForms Pro is very powerful and can do this. There are a few steps to it. When you make your fields, you would auto-populate the available teams by using RSForms built in shortcode for the query. ...
YellowWebMonkey's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible