We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
In which part of the wiki i find the examples?You will probably not notice any additional waiting times with either of those solutions, but form php plugin is just much more suitable for this case.
With form php plugin (onAfterProcess) you should also be able to do it with a query, like:
SELECT id FROM your_table WHERE radio_element = '*'
And if the query gives result, then update yesno element to 1, otherwise to 0.
So you don't need to make 35 if-statements.
Of course this is just a bare example of logic. It needs to be adjusted according to examples in wiki.
$mydb = Factory::getContainer()->get('DatabaseDriver')
$mydb->setQuery("SELECT * FROM lista WHERE CONCAT(radio1, radio2, radio3 ... ) LIKE '%*%' ");
$results = $mydb->loadObjectList();
if($results) {
$formModel->updateFormData('lista___Completo', '0', true);
} else {
$formModel->updateFormData('lista___Completo', '1', true);
}
i have seen around the function array search that seems perfect
i d need to select as array alll the radiobutton value
and then search within the array for *
if found yesno si
otherwise no
could be a solution?
What does it change?You $radios array must be something like
array($formModel->formData['lista___artBTN'],...)