Skip to content

Instantly share code, notes, and snippets.

@NikV
Created September 7, 2015 21:23
Show Gist options
  • Save NikV/727d394e8f2f1ea42418 to your computer and use it in GitHub Desktop.
Save NikV/727d394e8f2f1ea42418 to your computer and use it in GitHub Desktop.
Change the label in the addnote button
//Adding a custom ID and change label
function modify_addnote_button_gforms() {
$new_addnote_button = '<input type="submit" id="my-custom-addnote-styles" name="add_note" value="' . esc_attr__( 'Create Note', 'gravityforms' ) . '" class="button" style="width:auto;padding-bottom:2px;" onclick="jQuery(\'#action\').val(\'add_note\');"/>';
return $new_addnote_button;
}
add_filter('gform_addnote_button', 'modify_addnote_button_gforms');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment