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
// probably don't want to do this for a new record, as elements won't have value, unless they are defaults
if (!$formModel->isNewRecord()) {
// figure out which element we are being called for
$elementId = $elementModel->getId();
// is the element ID the one we want to hide?
if ($elementId == 33) {
// for debug purposes, uncomment the next line to see what the form data is set to
//var_dump($elementId, $formModel->data);exit;
// in this example, if the "event" join element is set to 17, we want to hide "this" element
if ($formModel->data['fab_main_test___event_raw'] == '17') {
return false;
}
}
}
return true;
// probably don't want to do this for a new record, as elements won't have value, unless they are defaults
if (!$formModel->isNewRecord()) {
// figure out which element we are being called for
$elementId = $elementModel->getId();
// is the element ID the one we want to hide?
if ($elementId == 33) {
// for debug purposes, uncomment the next line to see what the form data is set to
//var_dump($elementId, $formModel->data);exit;
// in this example, if the "event" join element is set to 19, we want to hide "this" element
// if the user isn't in the "Special" level (3)
if ($formModel->data['fab_main_test___event_raw'] == '18') {
$levels = $this->user->getAuthorisedViewLevels();
// uncomment the next line for some debug output of the current user's access levels etc.
//var_dump($levels, $this->user);exit;
// will return false if user is not in Viewing Access level 3 ("Special")
return in_array(3, $levels);
}
}
}
return true;