Personalizing the submit text of one form in multiple locations
-
Hi,
I use one gravity form throughout my site and am attempting to personalize the submit button text on page by page basis. To do this, I was hoping to add a hidden Gravity field called “submit button text” and then set that through the gravity form shortcode e.g.[gravityform id=”3″ title=”false” description=”false” ajax=”false” field_values=”submit_text=Get Free Templates”]
Then I was hoping on adding a function something like
$( function () {
var submitButtonText = $( ‘.gfield.submit_text input’ ).val();
if(submitButtonText != “null” ){
$( ‘.gform_footer .gform_button’ ).val( submitButtonText );
}Could someone help me write this function?
- The topic ‘Personalizing the submit text of one form in multiple locations’ is closed to new replies.