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 ...
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('...
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 ...
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:...
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">
...
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 ...
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,...
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('...
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'...
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 ...
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. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
select × 13form × 3
joomla-4.x × 3
php × 2
jquery × 2
custom-field × 2
ajax × 2
jdatabase × 2
joomla-3.x × 1
module × 1
mysql × 1
database × 1
jform × 1
form-fields-types × 1
sql × 1
joomla-3.7 × 1
fields × 1
validations × 1
dropdown × 1
regex × 1
joomla-5.x × 1