<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Form based on link clicked</title><link>https://www.infopathdev.com:443/forums/thread/61253.aspx</link><pubDate>Wed, 10 Nov 2010 13:31:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61253</guid><dc:creator>sharepointnp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61253</wfw:commentRss><description>I managed to accomplish what i wanted by passing parameters through the URL to the form.
In the form I use the &lt;b&gt;TryGetValue&lt;/b&gt; to get the variable being passed and set that value on a field.

This is a way of doing it but if your passing large amount of data it may get cluttered in the URL, if that is a concern.

What you suggested is good but for now I will stick with the solution I have momentarily.

Thanks though :-)</description></item><item><title>Re: Form based on link clicked</title><link>https://www.infopathdev.com:443/forums/thread/61194.aspx</link><pubDate>Tue, 09 Nov 2010 13:04:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61194</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61194</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not a programmer, but I believe you could pass a parameter from the URL into the InfoPath form. Then perform the &amp;quot;switch&amp;quot; using code.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;May I propose a different solution? Have one link in the SharePoint page. This opens up the form. The form shows three radio buttons for the user: Europe, America, Asia. The form has three sections (one for each region) and the radio buttons will determine which of the sections is displayed to the user. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Form based on link clicked</title><link>https://www.infopathdev.com:443/forums/thread/61165.aspx</link><pubDate>Mon, 08 Nov 2010 18:15:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61165</guid><dc:creator>sharepointnp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61165</wfw:commentRss><description>Hi,

What im looking for is a web based form that contains dynamic fields such as address and currency that vary depending on what
link has been clicked on the sharepoint site.

Example:

There are three links on a SP page; Europe, America and Asia.
When Europe is clicked, the address on the InfoPath form changes to an european address and european currency for calculations that will be done on the form.
When America is clicked the same for America and the same for Asia.

Hope Im clear on the requirements if any questions please do ask.</description></item></channel></rss>