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
See Announcement
We have resolved the issue with the J! updater and this will be fixed in the next release.
foreach ($this->elements as $element) :
$this->element = $element;
if ($element->id == 'yourtable___foo_ro' && $this->elements['yourtable___bar'] == '2') {
continue; // skip this, move on to next element
}
...
<?php
$rowStarted = false;
foreach ($this->elements as $element) :
$this->element = $element;
$this->element->single = $single = $element->startRow && $element->endRow;
if ($single)
{
$this->element->containerClass = str_replace('fabrikElementContainer', '', $this->element->containerClass);
}
$element->fullWidth = $element->span == 'span12' || $element->span == '';
$style = $element->hidden ? 'style="display:none"' : '';
if ($element->startRow) :
// PERSONAL CHANGES
if ($element->id == 'projets___budget_bmp_ro' && $this->elements['projets___budget_bmp'] == '0') {
continue;
}
// END OF PERSONAL CHANGES
?>
...
<?php
$rowStarted = false;
foreach ($this->elements as $element) :
$this->element = $element;
// PERSONAL CHANGES
if ($element->id == 'projets___budget_bmp_ro' && $this->elements['projets___budget_bmp'] == '0') {
continue;
}
// END OF PERSONAL CHANGES
$this->element->single = $single = $element->startRow && $element->endRow;
if ($single)
{
$this->element->containerClass = str_replace('fabrikElementContainer', '', $this->element->containerClass);
}
$element->fullWidth = $element->span == 'span12' || $element->span == '';
$style = $element->hidden ? 'style="display:none"' : '';
if ($element->startRow) :
?>
echo 'element id = ' . $element->id . 'value = ' . $this->elements['projets___budget_bmp'] . '<br>';
if ($element->id == 'projets___budget_bmp_ro' && $this->elements['budget_bmp']->value == '0') {
if ($element->id == 'projets___budget_bmp_ro' && $this->groups['projets']->elements['budget_bmp']->value == '0') {
if ($element->id == 'table___champ1_ro' && $this->elements['champ1']->value == '0') {continue;}
foreach ($this->groups as $group) :
foreach ($this->groups as $group) :
if ($group->id = 111 && $this->groups['projets']->elements['budget_bmp']->value == 'some text') :
continue;
endif;
<?php
endif;
echo $form->intro;
echo '<div class="fabrikForm fabrikDetails" id="' . $form->formid . '">';
echo $this->plugintop;
echo $this->loadTemplate('buttons');
echo $this->loadTemplate('relateddata');
foreach ($this->groups as $group) :
// PERSONAL CHANGES
if ($group->id = 282 && $this->groups['projets']->elements['commentaires_bmp']->value == 'Projet non-examin?') :
continue;
endif;
// END OF PERSONAL CHANGES
$this->group = $group;
?>
if($group->id== 111 && $this->groups['projets']->elements['budget_bmp']->value=='some text'):
continue;
endif;
if ((int) $group->id === 282 && $this->groups['PR ? valider (Choix BMP 2)']->elements['commentaires_bmp']->value === 'Projet non-examin?') :
continue;
endif;
echo "<pre>";print_r(array_keys($this->groups));echo "</pre>";
if ((int) $group->id === 282 && $this->groups['PR ? valider (Choix BMP 2)']->elements['commentaires_bmp']->value === 'Projet non-examin?') :
echo "<h1>Ignore this group</h1>";
continue;
endif;