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.
<?php
/**
* PDF document title for form view
*
*/
defined('JPATH_BASE') or die;
$d = $displayData;
/**
* Set the download file name based on the document title and rowid
*
* For overriding, you can access form data in $d->model->data['yourtable____yourelement'];
*
*/
// replace '123' with the numeric ID of your form
if ($d->model->getId() == '123') {
// replace yourtable___last_name with the full element name from your form
echo $d->model->data['yourtable___last_name'];
}
else {
echo $d->doc->getTitle() . '-' . $d->model->getRowId();
}
<?php
/**
* PDF document title for form view
*
*/
defined('JPATH_BASE') or die;
$d = $displayData;
/**
* Set the download file name based on the document title and rowid
*
* For overriding, you can access form data in $d->model->data['yourtable____yourelement'];
*
*/
echo $d->model->data['yourtable___last_name'];