Overview
How to set lead scores based on user selections in Gravity Forms.
Javascript Code
script> jQuery( document ).ready( function () { jQuery( document ).on( 'gform_post_render', function () { var status = jQuery( '#input_1_2' ).val(); if ( status == 'purchase' ) { logichop_goal( 'status-ready-to-purchase' ); } else if ( status == 'looking' ) { logichop_goal( 'status-just-looking' ); } else { logichop_goal( 'status-not-interested' ); } window.location.href = '/purchase-form/thank-you'; } ); } ); </script>