Hello,
I am trying to write a custom form submission email template to send a message when an entry was added or updated. For updated records it should show old vs. new value.
I found this thread providing a good start:
http://fabrikar.com/forums/index.php?threads/update-mail-script-1-5-3-0.37994/#post-190992
Now my problem is that I have 2 repeated groups in my table.
The following code in a PHP Email Template only returns the first entry of each repeated group.
This was already discussed here:
http://fabrikar.com/forums/index.ph...-entry-in-repeatable-group.38199/#post-192450
Is there another way to get the original data?
The current data can also be retrieved through
Is it possible to change getOrigData() function to return repeated groups correctly?
Or to implement a function $formModel->getElementOrigData()?
BR,
J?rn
I am trying to write a custom form submission email template to send a message when an entry was added or updated. For updated records it should show old vs. new value.
I found this thread providing a good start:
http://fabrikar.com/forums/index.php?threads/update-mail-script-1-5-3-0.37994/#post-190992
Now my problem is that I have 2 repeated groups in my table.
The following code in a PHP Email Template only returns the first entry of each repeated group.
PHP:
$origData = $formModel->getOrigData();
$origData = JArrayHelper::fromObject($origData[0]);
echo var_dump($origData) ;
This was already discussed here:
http://fabrikar.com/forums/index.ph...-entry-in-repeatable-group.38199/#post-192450
Is there another way to get the original data?
The current data can also be retrieved through
PHP:
$elementData = $formModel->getElementData('tablename___elementname');
Is it possible to change getOrigData() function to return repeated groups correctly?
Or to implement a function $formModel->getElementOrigData()?
BR,
J?rn