<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44366.aspx</link><pubDate>Wed, 15 Jul 2009 06:47:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44366</guid><dc:creator>Moni's</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44366</wfw:commentRss><description>&lt;p&gt;One more question, if the code has to read &lt;strong&gt;startdate value+3&lt;/strong&gt; and not the default &lt;strong&gt;currentdate+3&lt;/strong&gt;, then how should the code go?&lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44360.aspx</link><pubDate>Wed, 15 Jul 2009 05:20:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44360</guid><dc:creator>Moni's</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44360</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;Beautiful solution. I appreciate this. It works really fine for me. Thanks&amp;nbsp;a lot.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Regards,&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Monisha&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44274.aspx</link><pubDate>Tue, 14 Jul 2009 02:29:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44274</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44274</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please try the attached template, which uses JScript to store [current date + 3 days] in one of the form&amp;#39;s field when the form loads.&amp;nbsp; To avoid cluttering the form&amp;#39;s main data source, you may want to store the value in a secondary data source, though that would be a bit more complicated.&amp;nbsp; Here is the JScript I used, for those who are curious:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Get today&amp;#39;s date&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var three_days_from_now = new Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // add three days&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; three_days_from_now.setDate(three_days_from_now.getDate() + 3);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Select the node where the value will be stored&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var targetNode = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:threeDaysFromNow&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If the node has a nil attribute it needs to be removed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nilAttribute = targetNode.getAttributeNode(&amp;quot;xsi:nil&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(nilAttribute != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; targetNode.removeAttributeNode(nilAttribute);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Store the date in XML format YYYY-MM-DD, adding zeros where necessary&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetNode.text = three_days_from_now.getFullYear() + &amp;#39;-&amp;#39; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; zeroPad(three_days_from_now.getMonth() + 1, 2) + &amp;#39;-&amp;#39; + zeroPad(three_days_from_now.getDate(), 2);&lt;/p&gt;&lt;p&gt;&amp;nbsp;zeroPad is a simple function that I borrowed from http://sujithcjose.blogspot.com/2007/10/zero-padding-in-java-script-to-add.html. Please see that page to have a look at its implementation &lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44195.aspx</link><pubDate>Mon, 13 Jul 2009 08:06:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44195</guid><dc:creator>Moni's</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44195.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44195</wfw:commentRss><description>&lt;p&gt;I cannot use InfoPath 2007 right now, and I came to know about the function addDays in 2007.&lt;/p&gt;
&lt;p&gt;So, I have only one option to use code. Could you help me in this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44194.aspx</link><pubDate>Mon, 13 Jul 2009 07:19:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44194</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44194</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If you don&amp;#39;t mind limiting your forms to InfoPath 2007, you can use the handy addDays() function:&lt;/p&gt;&lt;p&gt;&amp;nbsp;addDays(today(), 3)&lt;/p&gt;&lt;p&gt;If not, you can use code to generate and store the value in a field where you can reference it at any time.&lt;/p&gt;&lt;p&gt;Which way do you prefer? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44193.aspx</link><pubDate>Mon, 13 Jul 2009 07:04:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44193</guid><dc:creator>Moni's</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44193</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks , this helps.. But What is the funstion which I need to set to make the date as 3+, As I said, If my start date is 13/7/2009 then the default End date should be 16/7/2009. How can I do that..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We have 2 functions in date one is now() and the other is today() , how can I use it to make 3+.&lt;/p&gt;
&lt;p&gt;Please reply with your Answer. Thanks alot for the help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Monisha&lt;/p&gt;</description></item><item><title>Re: Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44191.aspx</link><pubDate>Mon, 13 Jul 2009 06:23:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44191</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44191</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It doesn&amp;#39;t seem like you can use a formula to set the values of radio buttons, but what you can do is give the radio buttons simple values (like 1, 2, 3), and then use rules to set the value in &lt;i&gt;another&lt;/i&gt; field depending on which one is selected.&amp;nbsp; This should give you some more flexibility.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Can we set a default value to radio button?</title><link>https://www.infopathdev.com:443/forums/thread/44190.aspx</link><pubDate>Mon, 13 Jul 2009 06:08:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44190</guid><dc:creator>Moni's</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44190</wfw:commentRss><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;Can we set a default value to radio button, for example say I have a field start date which has date value say (10/7/2009), I want to set&amp;nbsp;my radio button default value as 3+ days of this start date. say (13/7/2009).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance. Its an urgent issue for my project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;Monisha&lt;/p&gt;</description></item></channel></rss>