<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Custom Credit Card Field Validation Message</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-credit-card-field-validation-message</link>
		<description>Gravity Support Forums Topic: Custom Credit Card Field Validation Message</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:36:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/custom-credit-card-field-validation-message" rel="self" type="application/rss+xml" />

		<item>
			<title>relish on "Custom Credit Card Field Validation Message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-credit-card-field-validation-message#post-273577</link>
			<pubDate>Fri, 24 May 2013 12:40:17 +0000</pubDate>
			<dc:creator>relish</dc:creator>
			<guid isPermaLink="false">273577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I have enabled the credit card field and would like to be able to customize the validation message on it.  I am setting the message and raising the error like on any other field, but the message just doesn't display on the credit card field.&#60;/p&#62;
&#60;p&#62;The field turns red indicating an error, but the message below the Cardholder Name input doesn't appear. The div.gfield_description.validation_message element doesn't appear at all.&#60;/p&#62;
&#60;p&#62;In the gform_validation hook, I am setting the message like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$validation_result[&#38;quot;is_valid&#38;quot;] = false;
$field[&#38;#39;failed_validation&#38;#39;] = true;
$field[&#38;#39;errorMessage&#38;#39;] = &#38;#39;The Credit Card you have entered has been declined.&#38;#39;;
$field[&#38;#39;validation_message&#38;#39;] = &#38;#39;The Credit Card you have entered has been declined.&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've even tried setting the $field['content'] element, but there is no change either.&#60;/p&#62;
&#60;p&#62;Can you please let me know how to customize the validation message for the credit card field?&#60;/p&#62;
&#60;p&#62;Thanks for your time!&#60;/p&#62;
&#60;p&#62;EDIT:&#60;br /&#62;
I am using Version 1.6.12
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
