<?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: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42452.aspx</link><pubDate>Wed, 03 Jun 2009 19:53:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42452</guid><dc:creator>cmccollum5</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42452</wfw:commentRss><description>&lt;p&gt;Thanks again, I have this part set up like you said. Then I added the condition to the dropdownlist to disable it when the Boolean field is set to false. When I submit the new form to SP, and re-open it from the list this ddl is still disabled and still blank, so it&amp;#39;s like the Boolean field never gets set to TRUE. I want it to where I submit the new form&amp;nbsp;to SharePoint, then when I re-open it, the Status field has a &amp;quot;New&amp;quot; status and is enabled. Am I still missing something? &lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure it&amp;#39;s something ridiculous&amp;nbsp;that I&amp;#39;m not seeing but I&amp;#39;m so new to InfoPath that I&amp;#39;d rather code&amp;nbsp;this in an aspx page but the client wants&amp;nbsp;InfoPath &amp;nbsp;:)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks, Chris&lt;/p&gt;</description></item><item><title>Re: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42295.aspx</link><pubDate>Sat, 30 May 2009 04:50:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42295</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42295</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s better to add the rule in the open rules rather than submission. Follow the below steps.&lt;/p&gt;
&lt;p&gt;1. Open the form in design mode.&lt;/p&gt;
&lt;p&gt;2. Go to Tools -&amp;gt; Form options -&amp;gt; rules.&lt;/p&gt;
&lt;p&gt;3. Click Add button.&lt;/p&gt;
&lt;p&gt;4. Click set condition.&lt;/p&gt;
&lt;p&gt;5. Select the drop down field in the first drop down, is not blank in the second drop down.&lt;/p&gt;
&lt;p&gt;6. Click ok.&lt;/p&gt;
&lt;p&gt;7. Click Add action.&lt;/p&gt;
&lt;p&gt;8. Select set a field&amp;#39;s value in the action drop down.&lt;/p&gt;
&lt;p&gt;9. Select the Boolean field in the firld.&lt;/p&gt;
&lt;p&gt;10. Enter true() in the value.&lt;/p&gt;</description></item><item><title>Re: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42269.aspx</link><pubDate>Fri, 29 May 2009 17:53:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42269</guid><dc:creator>cmccollum5</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42269</wfw:commentRss><description>&lt;p&gt;Thanks again! How do you set this value prior to submit? I guess I mean where do I set that rule? In the Submit Options?&amp;nbsp; Sorry, just too new at InfoPath!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;br /&gt;Chris&lt;/p&gt;</description></item><item><title>Re: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42245.aspx</link><pubDate>Fri, 29 May 2009 10:26:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42245</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42245.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42245</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you are setting that Boolean value after submitting the form. Set this value on submit button before submitting the form. The rule which is setting the value should be before the rule which is used to submit the form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42225.aspx</link><pubDate>Thu, 28 May 2009 18:15:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42225</guid><dc:creator>cmccollum5</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42225</wfw:commentRss><description>&lt;p&gt;Thanks a lot for the reply!&amp;nbsp; It seems like it is going to work, but I am a couple steps away...this is what I cannot figure out:&amp;nbsp;&amp;nbsp; What I did was set a rule on the Submit Button Options.&amp;nbsp; I set a condition on that rule that if the Status is not blank then in the rule I set the Boolean = TRUE.&amp;nbsp;&amp;nbsp; It still opens up&amp;nbsp;disabled from&amp;nbsp;the SharePoint list.&amp;nbsp;&amp;nbsp; BUT, I do see the dropdownlist enable after clicking Submit, but I have it set up to close after submit.&amp;nbsp; So briefly it looks like it&amp;#39;s going to work, but after closing it&amp;#39;s like it sets the boolean back to false.&amp;nbsp;&amp;nbsp; Please let me know if I did this in the right place as I think this is why it isn&amp;#39;t working.&lt;/p&gt;
&lt;p&gt;The other condition I set was on the DDL, I set the condition if Boolean = False then disable the ddl (and set the value to New).&amp;nbsp; That condition seems to be working, it is disabled when first opening and the value is New.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42190.aspx</link><pubDate>Thu, 28 May 2009 05:22:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42190</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42190</wfw:commentRss><description>&lt;p&gt;Hello and welcome to Forums,&lt;/p&gt;
&lt;p&gt;Add a Boolean field with default value as false to the data source. Set this field to true when the DDL is not blank in open rules. So for the submitted form it is true. Now add the condition to the drop down list as if the Boolean field is false then make the DDL read only and set the value to New. &lt;/p&gt;</description></item><item><title>Set textbox or dropdownlist to a value when form is "new" from SP Library</title><link>https://www.infopathdev.com:443/forums/thread/42168.aspx</link><pubDate>Wed, 27 May 2009 17:09:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42168</guid><dc:creator>cmccollum5</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42168</wfw:commentRss><description>&lt;p&gt;I would like to set a Status field that I have in a dropdownlist to a certain value as well as have it Read-Only&amp;nbsp;when the New Form is clicked in the form library in SP.&amp;nbsp; When editing the form, I want the users to be able to change that status field and have that ddl enabled.&lt;/p&gt;
&lt;p&gt;I have a form that I created using VB.NET to connect to a webservice and save the contents to a sql server db and all of that works perfectly,&amp;nbsp;but now I am trying to limit what users see when the form new, or editable.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Example: Click New Form in SP Form Library.&amp;nbsp; Form opens and if it is &amp;quot;new&amp;quot; status&amp;nbsp;I want to set the Status DDL to &amp;quot;New&amp;quot; and have it read-only so the user cannot change the status.&amp;nbsp; When it is&amp;nbsp;submitted and&amp;nbsp;is re-opened from the list, I want the Status DDL to be editable&amp;nbsp;so the users can change the status.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Any ideas?&amp;nbsp; I am new to InfoPath development so I am a little confused how to accomplish this. I know that in asp.net you set the ddl to a value upon load and it all works but having a hard time figuring it out in InfoPath and SharePoint.&lt;/p&gt;</description></item></channel></rss>