Questions tagged [select]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
543 views

Custom multiselect field not working in J4

In my Joomla 3 component, i have a custom field that is a select list with multiple=true. The values of such an select list are binary handled like 1,2,4,8,16. When storing, the values are getting ...
2 votes
1 answer
542 views

Use Ajax to refresh available options

I'm struggling with coding an ajax refresh of options in a select list based on what's already selected in the previous field. Scenario is I get a list of positions and each position one or many ...
1 vote
1 answer
103 views

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

I have been successfully using a homemade article including a form and some javascript for a while now on Joomla 3 which also uses the Regularlabs Sourcerer plugin. Turns out that I recently migrated ...
2 votes
1 answer
310 views

custom form list field add disabled options - create optgroups

I have a working list based on an sql query. Now I would like to add some spacers (not selectable items). When doing this manually in xml you can add the disabled attr to that item, but how can I do ...
2 votes
2 answers
1k views

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 on the details page (edit.php), when I change a value from another dropdown field, I want to change the options of another dropdown (later by AJAX). For now my test works if I look just to the ...
0 votes
1 answer
35 views

Joomla DB where statement not works as expected

I don't understand the world right now. I try to make a simple query from the DB, but it fails with the message that the column is not known. I do not understand why Joomla! tries to see the value I ...
2 votes
1 answer
1k views

Update List field rendering after ajax update

for one of my extensions i need to update a select list by ajax. the whole ajax call is working and i got the new option vars for the select list. I add those options in the ajax's "success" function ...
1 vote
2 answers
311 views

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

How can rows starting with non alphabetic characters (all "special" characters, including spaces and underscores) be selected? I don't know if it changes anything, but my_table will also contain ...
1 vote
0 answers
592 views

Show select when checkbox is checked and validate select as required

I have added new fields in the configuration file for my form, like this: <?xml version="1.0" encoding="utf-8"?> <form> <fieldset> <field name="yes" type="checkbox" ...
1 vote
1 answer
437 views

How to select records one by one using JDatabaseQuery

In programming languages there are 2 patterns for selecting records from the database: //prepare SELECT statement while($record = $query->fetchRow()) { //do the job } And the second: //...
1 vote
2 answers
472 views

Select+Checkboxes fields = query a Database [closed]

I want to make a form which contains one select field (dates) and multiple checkbox fields (teams), so when I select a date or choose a team, automatically makes a query a database, filtering by the ...
0 votes
1 answer
588 views

How to filter and reduce drop down select box

Using below code to display database values as drop down in rsjoomla $items = "|Please Select[c]\n"; $db = JFactory::getDBO(); $db->setQuery("SELECT id, prod_name FROM __used_products ORDER BY ...