Change Validation Message for a Specific Field

Code

Filename: gpls-field-validation-message.php

<?php
/**
 * Gravity Perks // Limit Submission // Change Validation Message for a Specific Field
 * https://gravitywiz.com/documentation/gravity-forms-limit-submissions/
 */
// Update "123" to your form ID and "4" to your field ID.
add_filter( 'gpls_field_validation_message_123_4', function( $message ) {
	return 'Example validation message.';
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.