Description
The “gform_addnote_button” filter in Gravity Forms allows modification of the HTML of the “Add Note” button for Entry Notes on the Entry Detail page.
Usage
add_filter( 'gform_addnote_button', 'your_function_name', 10, 1 );
Parameters
- $note_button string
The HTML for the “Add Note” Button.
Examples
add_filter( 'gform_addnote_button', 'change_button', 10, 1 ); function change_button( $note_button ){ $note_button = '<input type="submit" name="add_note" value="' . esc_attr__( 'Add A Note To Your Entry', 'gravityforms' ) . '" class="button" style="width:auto;padding-bottom:2px;background-color:blue;color:white" onclick="jQuery(\'#action\').val(\'add_note\');"/>'; return $note_button; }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFEntryDetail::notes_grid() in entry_detail.php.