<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6626.aspx</link><pubDate>Mon, 18 Apr 2005 19:52:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6626</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6626</wfw:commentRss><description>Thanks for letting us know. Glad to be of help :)&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6625.aspx</link><pubDate>Tue, 12 Apr 2005 08:27:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6625</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6625</wfw:commentRss><description>shanti, your approach is working well.&lt;br /&gt;thanks again for the tips :)</description></item><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6624.aspx</link><pubDate>Mon, 11 Apr 2005 04:39:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6624</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6624</wfw:commentRss><description>hey shanti, i think i understand your approach.&lt;br /&gt;i'll give it a go and i'll post it again if my case works.&lt;br /&gt;thanks again for the tip! :)</description></item><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6623.aspx</link><pubDate>Sun, 10 Apr 2005 21:56:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6623</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6623</wfw:commentRss><description>The only way i can think of programmatically to set a text box readonly is to set an element value in the DOM and have conditional formatting for the text box based on the value of this element&lt;br /&gt;&lt;br /&gt;If the text box read only status needs to be saved across Infopath sessions then you can either have this value in the secondary DOM and reset it OnLoad or have this value this value in the Main dom so that it is saved.&lt;br /&gt;&lt;br /&gt;Does this help?&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6622.aspx</link><pubDate>Thu, 07 Apr 2005 06:06:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6622</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6622</wfw:commentRss><description>hi Shanthi, thanks for the reply :)&lt;br /&gt;&lt;br /&gt;hmmm i've tried the 2nd approach u suggested before n it really didn't work as what i expected.&lt;br /&gt;&lt;br /&gt;do u know the semantic for setting a control to be "read-only" programmatically though?</description></item><item><title>Re: onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/6621.aspx</link><pubDate>Mon, 04 Apr 2005 12:01:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6621</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6621</wfw:commentRss><description>You can do this by having conditional formatting set based on a &lt;br /&gt;secondary DOM field value and set that field value as you want it in the onLoad function.&lt;br /&gt;&lt;br /&gt;There is also the option to set conditional formatting directly and mention that if the field contains some value then make it read only -&amp;gt; but remember if you do this the field will become read only once a user enters some data into the field and clicks out of it.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>onLoad read-only</title><link>https://www.infopathdev.com:443/forums/thread/4604.aspx</link><pubDate>Fri, 01 Apr 2005 01:01:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4604</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4604.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4604</wfw:commentRss><description>does anyone know how to set a control to be read-only programmatically?&lt;br /&gt;i want so that every non-blank textboxes to be read-only during onLoad...</description></item></channel></rss>