Total price
-
Hi.
I am trying to use your snippet found below, so i can use the total price field in Gravity Forms.
Can you tell me if i got some of these concepts wrong?“gform_37” = the ID of the gravity form
“repeaterId == 1” = the id of the repeater
“gfRepeater_select(37, 1, null, 3, 1);” = i dont know what this is
“#input_37_11” = the id of the total price input fieldFurthermore, what are the numbers in gfRepeater referring to?
// Jannik
jQuery(‘#gform_37’).on(‘gform_repeater_init_done gform_repeater_after_repeat gform_repeater_after_unrepeat’, function(event, repeaterId, repeatId){
if (repeaterId == 1) {
var totalMiles = 0;
var milesFields = gfRepeater_select(37, 1, null, 3, 1);jQuery.each(milesFields, function(){
if (this.val()) { totalMiles += Number(this.val()); }
});jquery(‘#input_37_11’).val(totalMiles);
}
});
- The topic ‘Total price’ is closed to new replies.