Created
June 4, 2018 16:35
-
-
Save CapWebSolutions/010a4648929cc08fab015bd78c952530 to your computer and use it in GitHub Desktop.
Add text AFTER submit button on Gravity Forms form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * ----- Add comment AFTER submit button on ALL Gravity Forms forms. | |
| * @link https://docs.gravityforms.com/gform_submit_button/#2-add-text-after-the-button- | |
| */ | |
| // Add consent statment after Submit button | |
| add_filter( 'gform_submit_button', 'add_paragraph_below_submit', 10, 2 ); | |
| function add_paragraph_below_submit( $button, $form ) { | |
| return $button .= "<p>By filling out this form, I acknowledge that I have read, consent to, and agree to be bound by, the terms of our <a href=\"/company/privacy-statement/\" target=\"_blank\">Privacy Policy</a>.</p>"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment