• Fabrik4.5.1 for Joomla5.2.4

    Fabrik4.5.1 is out. This update is needed for J!5.2.4

    See Announcements

Fixed Search Form - can users omit some fields?

aksmith

Member
Hello (again):
I have created a search form for a large botanical db with a few fields (many more to come):

Screenshot 2025-03-08 at 5.18.08 PM.png

For some reason, the first field (Family = scientific family - it's a dbjoin like the plant type) is a gatekeeper. If a user selects a scientific family, then they can cherry pick the other fields and return valid results.
If they omit that field, and fill all or any combination of the remaining fields, the search returns "No results".
Nothing else seems to distinguish the first field from the others (they're all unlinked copies of the list fields).
Any ideas?
Thanks!
-Alan
 
Enable 'allow fabrikDebug' in Options, append &fabrikdebug=1 to your jump URL and see which WHERE clauses you get.

Do you use "append jump url with data" or "use as search data"?
 
Strange that you say PlantType is working.

Can you try to change in
plugins\fabrik_element\databasejoin\databasejoin.php line 3012 to
if (empty($data) || $data == '-1')

and in plugins\fabrik_form\redirect\redirect.php line 432 to
if (!$element->dataConsideredEmpty($v,0)) //if ($v != '')
 
Back
Top