<?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: Targeting 'Drop Down' in helper-functions.php for replacement. How?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Targeting 'Drop Down' in helper-functions.php for replacement. How?</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 20:55:04 +0000</pubDate>

<item>
<title>offcourse on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23318</link>
<pubDate>Thu, 21 May 2015 16:29:27 +0000</pubDate>
<dc:creator>offcourse</dc:creator>
<guid isPermaLink="false">23318@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Curious to understand if this would help my need. I need a select to be dependent from the previous value. Meaning that the options in the second dropdown would be filtered by a parent value in the previous select.&#60;/p&#62;
&#60;p&#62;Any ideas on how to achieve this?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23310</link>
<pubDate>Wed, 20 May 2015 17:57:22 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23310@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Argh... :&#124;&#60;/p&#62;
&#60;p&#62;Thanks once again Yuniar :)
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23309</link>
<pubDate>Wed, 20 May 2015 16:54:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">23309@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ah.. it seems you're missing the brackets for the second IF. It should be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(($form_id == 10003) OR ($form_id == 10004)){&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23308</link>
<pubDate>Wed, 20 May 2015 16:33:14 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23308@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;No rush, but wondering something.&#60;/p&#62;
&#60;p&#62;If I use:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;select&#38;#39; &#38;#38;&#38;#38; $target_is_admin === true){
				if($form_id == 10003) OR ($form_id == 10004){
				if($data[&#38;#39;element_id&#38;#39;] == 3){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The script stops working (blank pages, probably internal server error or something).&#60;/p&#62;
&#60;p&#62;However this did work for radio buttons. Is this not possible with select?&#60;br /&#62;
Like I said; it's not a big thing, because I created now 2 seperate rules, but I always thought less code is better. :)
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23304</link>
<pubDate>Tue, 19 May 2015 19:06:04 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23304@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Damn... Just replace 'radio' with 'select'. &#60;/p&#62;
&#60;p&#62;I feel stupid once again. Oh well. Better to ask than pull my hair out.&#60;/p&#62;
&#60;p&#62;Thanks Yuniar.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23298</link>
<pubDate>Tue, 19 May 2015 17:48:55 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">23298@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;To target the dropdown field, you'll only need to change the first line of the code. To be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;select&#38;#39; &#38;#38;&#38;#38; $target_is_admin === true){&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23297</link>
<pubDate>Tue, 19 May 2015 17:08:44 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23297@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;* small re-bump *
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23295</link>
<pubDate>Mon, 18 May 2015 17:57:43 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23295@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;* small bump *
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Targeting 'Drop Down' in helper-functions.php for replacement. How?"</title>
<link>https://www.machform.com/forums/topic/targeting-drop-down-in-helper-functionsphp-for-replacement-how#post-23281</link>
<pubDate>Fri, 15 May 2015 19:45:15 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">23281@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar / other staff members,&#60;/p&#62;
&#60;p&#62;Quick question; I am still using the code Yuniar once had given me to replace targeted 'Multiple Choice' fields, so it would replace them with custom, defined, values. Like shown below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;radio&#38;#39; &#38;#38;&#38;#38; $target_is_admin === true){
				if($form_id == xxxxx){
				if($data[&#38;#39;element_id&#38;#39;] == xx){

				if($data[&#38;#39;value&#38;#39;] == &#38;quot;Option number 1&#38;quot;){
					$entry_details[$i][&#38;#39;value&#38;#39;] .= &#38;quot; (Product code: 66005)&#38;quot;;
				}elseif($data[&#38;#39;value&#38;#39;] == &#38;quot;Option number 2&#38;quot;){
					$entry_details[$i][&#38;#39;value&#38;#39;] .= &#38;quot; (Product code: 66006)&#38;quot;;
				}elseif($data[&#38;#39;value&#38;#39;] == &#38;quot;Option number 3&#38;quot;){
					$entry_details[$i][&#38;#39;value&#38;#39;] .= &#38;quot; (Product code: 66007)&#38;quot;;
				}elseif($data[&#38;#39;value&#38;#39;] == &#38;quot;Option number 4&#38;quot;){
					$entry_details[$i][&#38;#39;value&#38;#39;] .= &#38;quot; (Product code: 66008)&#38;quot;;
				}

				}
				}
			}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;How would I target a 'Drop Down' field in this case?&#60;br /&#62;
Because there is no type for this. So probably there is a different approach for this?&#60;/p&#62;
&#60;p&#62;Thank you in advance.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Michel
&#60;/p&#62;</description>
</item>

</channel>
</rss>
