Yep. What you'll want to do is add another jQuery snippet that fires when the Gravity Form is submitted. This is not tested/working code, but it'll look something like this:
jQuery("#gform_6").submit(function(){
var roi_result = jQuery("#roi_result").text();
jQuery("#hidden_field_id").val(roi_result);
});
You'll want to create a hidden field in the Gravity Form and then replace the id of the field where I've indicated in that jQuery bit. The concept here is that when the Gravity Form is submitted, the hidden field will be populated with whatever value is in the #roi_result span (which will contain their ROI if they've completed the calculator).
Hope that helps. :)
Posted 15 years ago on Monday October 4, 2010 |
Permalink