<?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: URL parameter settings for multiple choice</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: URL parameter settings for multiple choice</description>
<language>en</language>
<pubDate>Wed, 10 Jun 2026 02:35:48 +0000</pubDate>

<item>
<title>yuniar on "URL parameter settings for multiple choice"</title>
<link>https://www.machform.com/forums/topic/url-parameter-settings-for-multiple-choice#post-16857</link>
<pubDate>Wed, 23 Jan 2013 10:41:14 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16857@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;For multiple choice, you need to view the HTML source of the field and see the &#34;value&#34; attribute.&#60;br /&#62;
So for example, if you have Yes and No, the HTML code would be something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span&#38;gt;
  &#38;lt;input id=&#38;quot;element_1_1&#38;quot;  name=&#38;quot;element_1&#38;quot; class=&#38;quot;element radio&#38;quot; type=&#38;quot;radio&#38;quot; value=&#38;quot;1&#38;quot; /&#38;gt;
  &#38;lt;label class=&#38;quot;choice&#38;quot; for=&#38;quot;element_1_1&#38;quot;&#38;gt;Yes&#38;lt;/label&#38;gt;
&#38;lt;/span&#38;gt;
&#38;lt;span&#38;gt;
  &#38;lt;input id=&#38;quot;element_1_2&#38;quot;  name=&#38;quot;element_1&#38;quot; class=&#38;quot;element radio&#38;quot; type=&#38;quot;radio&#38;quot; value=&#38;quot;2&#38;quot;  /&#38;gt;
  &#38;lt;label class=&#38;quot;choice&#38;quot; for=&#38;quot;element_1_2&#38;quot;&#38;gt;No&#38;lt;/label&#38;gt;
&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can pass the parameter like this:&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/machform/view.php?id=12&#38;#38;element_1=1&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/machform/view.php?id=12&#38;#38;element_1=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;that would select the &#34;Yes&#34;. To select &#34;No&#34;, you can do like this:&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/machform/view.php?id=12&#38;#38;element_1=2&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/machform/view.php?id=12&#38;#38;element_1=2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;the URL parameter should override the default value. If this is not the case for you, can you let me know the URL of your form please?
&#60;/p&#62;</description>
</item>
<item>
<title>ls75 on "URL parameter settings for multiple choice"</title>
<link>https://www.machform.com/forums/topic/url-parameter-settings-for-multiple-choice#post-16856</link>
<pubDate>Wed, 23 Jan 2013 10:32:01 +0000</pubDate>
<dc:creator>ls75</dc:creator>
<guid isPermaLink="false">16856@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The best I can figure out on this so far is that if you have set a default for a multiple choice field, you cannot override this with a URL parameter.  In my testing, I started with a default of No and tried to override to Yes in the URL.  This would not work.  Second test I removed the default setting and left both elements unchecked.  With this setup I WAS able to set a value from the URL using element_15=1 for Yes.&#60;/p&#62;
&#60;p&#62;Let me know if this result can be reproduced or not.  It would really be nice to have a default set but override with the URL parameter.  Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>ls75 on "URL parameter settings for multiple choice"</title>
<link>https://www.machform.com/forums/topic/url-parameter-settings-for-multiple-choice#post-16847</link>
<pubDate>Tue, 22 Jan 2013 15:04:52 +0000</pubDate>
<dc:creator>ls75</dc:creator>
<guid isPermaLink="false">16847@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How do you go about setting these field types in the URL?  I've read some documentation about this already and can get it to work for text fields, but am stumped with the multiple choice fields.&#60;/p&#62;
&#60;p&#62;element_15 has two options element_15_1 which is Yes, and element_15_2 which is No.  No is the default, but I would like to override this in the URL to Yes for some clients.&#60;/p&#62;
&#60;p&#62;Thanks for the help
&#60;/p&#62;</description>
</item>

</channel>
</rss>
