<?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: Sending form based on options selected</title><link>https://www.infopathdev.com:443/forums/thread/14463.aspx</link><pubDate>Sat, 08 Apr 2006 07:51:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14463</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14463</wfw:commentRss><description>One more possibility (which also requires a little code) ...&lt;br /&gt;&lt;br /&gt;You can define 4 other subset forms and then when they click on which version they want, set some value in a secondary data source. Based on this value, call NewFromSolution to open a subset form of the given type and load the data into the form. Then, add an Open rule (Tools-&amp;gt;Form Options-&amp;gt;Advanced-&amp;gt;Open Rules) that sends the form on open using an e-mail adapter.</description></item><item><title>Re: Sending form based on options selected</title><link>https://www.infopathdev.com:443/forums/thread/14462.aspx</link><pubDate>Fri, 07 Apr 2006 19:30:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14462</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14462</wfw:commentRss><description>Yes it is possible, but all of this has to be done in the code. &lt;br /&gt;&lt;br /&gt;When you click on "send" button, &lt;br /&gt;1. Remove the nodes(options which are not selected) using "removeChild()" method from the XML(Min occurs for these nodes should not be 1 in the schema).&lt;br /&gt;2. Now send mail by accessing the EmailAdapter from the code.&lt;br /&gt;3. And now add the deleted nodes back into the form.&lt;br /&gt;&lt;br /&gt;In this way you will be able to send mail without the other 3 options.</description></item><item><title>Sending form based on options selected</title><link>https://www.infopathdev.com:443/forums/thread/12837.aspx</link><pubDate>Fri, 07 Apr 2006 16:47:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12837</guid><dc:creator>JimDandy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12837.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12837</wfw:commentRss><description>I am trying to create a form that, once filled in, can be sent to e-mail recipients but I want the form that gets sent to only be a subset of the form filled out. I want to create the “sent” version of the form by allowing the user to choose one of 4 optional messages, then when they click the send button, the only the information sent is that based on their selection. All the other options and text are removed. &lt;br /&gt;&lt;br /&gt;Is it possible to change the form in that way prior to being sent?&lt;br /&gt;</description></item></channel></rss>