How is it supposed to work?
I'm trying to send a mail with some record data and then delete the record
Php code is in code field (not in file)
Placeholders are empty if the element is readonly for the current user or returning raw values only otherwise;
my workaround is to use {rowid} to fetch readonly content + dbjoin labels from the database directly.
This is not nice but working.
Other possibilities (as mentioned in our Skype conversation: $groups, $_POST, $formModel->formData, $data, $row) are undefined, empty or don't contain the readonly data/labels.
Additional strange behaviour:
if deleting a record via list view it is also calling the form's php (onDeleteRowsForm) code which - no surprise - doesn't know {rowid} or any other placeholder in this case.
I'm trying to send a mail with some record data and then delete the record
Php code is in code field (not in file)
Placeholders are empty if the element is readonly for the current user or returning raw values only otherwise;
my workaround is to use {rowid} to fetch readonly content + dbjoin labels from the database directly.
This is not nice but working.
Other possibilities (as mentioned in our Skype conversation: $groups, $_POST, $formModel->formData, $data, $row) are undefined, empty or don't contain the readonly data/labels.
Additional strange behaviour:
if deleting a record via list view it is also calling the form's php (onDeleteRowsForm) code which - no surprise - doesn't know {rowid} or any other placeholder in this case.