Rob,
Thank you for that hook the code now works on the front end of the site. However I am running into issues having the new total show up in notifications. Do I need to use the gform_product_info filter? If so I'm not understanding how it works. Here is the working Javascript code.
function gform_product_total(formId, total){
standardrecord = jQuery("#input_2_14").val()*1;
legalrecord = jQuery("#input_2_19").val()*2;
quantity = (standardrecord + legalrecord);
if (quantity > 0) if (quantity <= 100)
{
return 40;
} }
How would I write this same code so that it will show up in notifications?
Posted 12 years ago on Tuesday May 8, 2012 |
Permalink