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.
$('fabrik_formdata_X___total').value = $('fabrik_formdata_X__units').value * $('fabrik_formdata_X__price).value;
Hugh Messenger said:Use a form submit script ("as soon as form submitted, simple eval"), and access the $aData[] array directly. To get the array indexes you need, start by just doing this ...
var_dump($aData);
That wil print out the content of $aData, showing you the exact array indexes you'll need (like fabrik_formdata_X___foo). Then get rid of the var_dump, and ...
$aData['total'] = $aData['price'] * $aData['units'];
... or whatever the indexes are you need.
-- hugh