<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Include session variable as value for hidden input field</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Include session variable as value for hidden input field</description>
<language>en</language>
<pubDate>Fri, 11 Sep 2026 11:15:36 +0000</pubDate>

<item>
<title>yuniar on "Include session variable as value for hidden input field"</title>
<link>https://www.machform.com/forums/topic/include-session-variable-as-value-for-hidden-input-field#post-10984</link>
<pubDate>Fri, 03 Dec 2010 20:47:42 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">10984@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;We've replied to your support request email. Please check it there.
&#60;/p&#62;</description>
</item>
<item>
<title>AKirob on "Include session variable as value for hidden input field"</title>
<link>https://www.machform.com/forums/topic/include-session-variable-as-value-for-hidden-input-field#post-10976</link>
<pubDate>Fri, 03 Dec 2010 01:26:26 +0000</pubDate>
<dc:creator>AKirob</dc:creator>
<guid isPermaLink="false">10976@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This doesn't seem to work?1 :(
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Include session variable as value for hidden input field"</title>
<link>https://www.machform.com/forums/topic/include-session-variable-as-value-for-hidden-input-field#post-9601</link>
<pubDate>Tue, 01 Jun 2010 11:28:49 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9601@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You still can apply the method in that post. However, you can follow to these steps to make sure you got the correct line&#60;/p&#62;
&#60;p&#62;1. Edit your view-functions.php file and go to around line 39 for these code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//check for populated value, if exist, use it instead default_value
if(isset($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id][&#38;#39;default_value&#38;#39;])){
	$element-&#38;gt;default_value = $element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id][&#38;#39;default_value&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put these code exactly bellow that code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(($_REQUEST[&#38;#39;id&#38;#39;] == 2) &#38;#38;&#38;#38; ($element-&#38;gt;id == 1)){
	$element-&#38;gt;default_value = $_SESSION[&#38;#39;your_session_var&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would fill text field with id 1 on form 2 a session variable value. Don't forget to change the id's with yours.&#60;/p&#62;
&#60;p&#62;2. Edit your CSS form and put this code in there :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_1 {
display:none !important;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would hide your text field.
&#60;/p&#62;</description>
</item>
<item>
<title>rassoomach on "Include session variable as value for hidden input field"</title>
<link>https://www.machform.com/forums/topic/include-session-variable-as-value-for-hidden-input-field#post-9600</link>
<pubDate>Tue, 01 Jun 2010 01:22:03 +0000</pubDate>
<dc:creator>rassoomach</dc:creator>
<guid isPermaLink="false">9600@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;As it's been two years since this topic appears to have been dealt with:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/enable-code-in-admin-only-fields?replies=10&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/enable-code-in-admin-only-fields?replies=10&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can you please let me know if this fix should still apply?  I've been trying for ages without any joy. &#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
