Hi Shaun,
Yes, the provided code is still effective in blocking website URLs from the paragraph field.
add_filter( 'gform_field_validation_1_74', 'validate_input_1_74', 10, 4 );
function validate_input_1_74( $result, $value, $form, $field ) {
$nourl_pattern = '(http|https)';
if ( preg_match( $nourl_pattern, $value ) ) {
$result['is_valid'] = false;
$result['message'] = 'Message can not contain website addresses.';
}
return $result;
}
Have you had a chance to test it?
