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
Please see our announcement here.
$your_elem_val={table_name___elem_name};
//echo '<pre>' . var_export($your_elem_val, true) . '</pre>';
//exit;
if($may_elem_val=='1'){
return true;//run redirect
}
else{
return false; //not run redirect
}