<?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: prefill checkbox</title>
		<link>https://legacy.forums.gravityhelp.com/topic/prefill-checkbox</link>
		<description>Gravity Support Forums Topic: prefill checkbox</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:53:02 +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/prefill-checkbox" rel="self" type="application/rss+xml" />

		<item>
			<title>enrise on "prefill checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prefill-checkbox#post-42172</link>
			<pubDate>Fri, 25 Nov 2011 10:35:19 +0000</pubDate>
			<dc:creator>enrise</dc:creator>
			<guid isPermaLink="false">42172@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;I'm trying to prefill a form.&#60;br /&#62;
I found this: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But I cant get it to work with (more then one) checkbox. text input/areas are fine&#60;br /&#62;
How does that work?&#60;/p&#62;
&#60;p&#62;I use this tweakes prefill the text inputs/areas:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$value = &#38;#39;prefill value&#38;#39;;
add_filter(&#38;#39;gform_field_value_FIELDNAME, function($content) use ($value) {
    return $value;
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;assuming my prefil name for the checkboxes is 'branche' and some example values are: ictmul, indust, archit&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$values = array(&#38;#39;archit&#38;#39;, &#38;#39;ictmul&#38;#39;);
add_filter(&#38;#39;gform_field_value_branche, function($content) use ($values) {
    //what goes here?
    return $values;//?? some array() ??
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
