<?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: gform_[admin_]pre_render and/or gform_after_submission problem</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_admin_pre_render-andor-gform_after_submission-problem</link>
		<description>Gravity Support Forums Topic: gform_[admin_]pre_render and/or gform_after_submission problem</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:36:31 +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/gform_admin_pre_render-andor-gform_after_submission-problem" rel="self" type="application/rss+xml" />

		<item>
			<title>sjolshagen on "gform_[admin_]pre_render and/or gform_after_submission problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_admin_pre_render-andor-gform_after_submission-problem#post-47324</link>
			<pubDate>Wed, 25 Jan 2012 11:17:37 +0000</pubDate>
			<dc:creator>sjolshagen</dc:creator>
			<guid isPermaLink="false">47324@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Additionally, the following HTML is a bit perplexing to me. Notice how the ID number skips 20? The same happens for 10 and 30 which seems to tie in to the fact that the checkbox moves and I infer from this that if I had 100 checkboxes created, I'd wind up with the 101st checkbox having the id of 2.111 (and not 2.101 which - since I don't know any better -  is what I'd have expected it to be)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li class=&#38;#39;gchoice_2_19&#38;#39;&#38;gt;&#38;lt;input name=&#38;#39;input_2.19&#38;#39; type=&#38;#39;checkbox&#38;#39;  value=&#38;#39;18&#38;#39;  id=&#38;#39;choice_2_19&#38;#39; tabindex=&#38;#39;19&#38;#39;  /&#38;gt;&#38;lt;label for=&#38;#39;choice_2_19&#38;#39;&#38;gt;Jan 18&#38;lt;/label&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;li class=&#38;#39;gchoice_2_21&#38;#39;&#38;gt;&#38;lt;input name=&#38;#39;input_2.21&#38;#39; type=&#38;#39;checkbox&#38;#39;  value=&#38;#39;19&#38;#39;  id=&#38;#39;choice_2_21&#38;#39; tabindex=&#38;#39;20&#38;#39;  /&#38;gt;&#38;lt;label for=&#38;#39;choice_2_21&#38;#39;&#38;gt;Jan 19&#38;lt;/label&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;li class=&#38;#39;gchoice_2_22&#38;#39;&#38;gt;&#38;lt;input name=&#38;#39;input_2.22&#38;#39; type=&#38;#39;checkbox&#38;#39;  value=&#38;#39;20&#38;#39;  id=&#38;#39;choice_2_22&#38;#39; tabindex=&#38;#39;21&#38;#39;  /&#38;gt;&#38;lt;label for=&#38;#39;choice_2_22&#38;#39;&#38;gt;Jan 20&#38;lt;/label&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sjolshagen on "gform_[admin_]pre_render and/or gform_after_submission problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_admin_pre_render-andor-gform_after_submission-problem#post-47322</link>
			<pubDate>Wed, 25 Jan 2012 11:12:30 +0000</pubDate>
			<dc:creator>sjolshagen</dc:creator>
			<guid isPermaLink="false">47322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Using Gravityforms v1.6.3.1.1 and WP 3.3 with Headway 2.0.13.&#60;/p&#62;
&#60;p&#62;Based on the contents in a database I'd like to pre-populate  - using gform_pre_render() - the state of a months worth of checkboxes (i.e. the checkbox is selected/checked if there is content saved for that column in the database table). &#60;/p&#62;
&#60;p&#62;The data gets saved correctly (so I believe my gform_after_submission() function does &#34;the right thing&#34;). &#60;/p&#62;
&#60;p&#62;It's upon subsequently reading the data that the checkmark for the previously selected/checked checkbox will &#34;jump&#34; one additional space (day) out in time for every 10th day. Meaning, pre-save, if I checked the checkbox for day 25, it will be rendered as checked on the 27th day when I go back to the form after saving. If I'd checked day 10 pre save, it will now render as day 11, etc.&#60;/p&#62;
&#60;p&#62;When checking the database, the correct column - i.e. the column for day 25 - _is_ set in the table.&#60;/p&#62;
&#60;p&#62;I've got the code I use pasted here: &#60;a href=&#34;http://pastebin.com/xmcmBWD7&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/xmcmBWD7&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also, I've got screen shots of the pre and post save form at the following locations:&#60;/p&#62;
&#60;p&#62;Before Save: &#60;a href=&#34;http://www.wickedstrongbootcamps.com/wp-content/uploads/2012/01/Before-save.tiff&#34; rel=&#34;nofollow&#34;&#62;http://www.wickedstrongbootcamps.com/wp-content/uploads/2012/01/Before-save.tiff&#60;/a&#62;&#60;br /&#62;
After Save: &#60;a href=&#34;http://www.wickedstrongbootcamps.com/wp-content/uploads/2012/01/After-save.tiff&#34; rel=&#34;nofollow&#34;&#62;http://www.wickedstrongbootcamps.com/wp-content/uploads/2012/01/After-save.tiff&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
