<?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 field readonly programmatically</title><link>https://www.infopathdev.com:443/forums/thread/14716.aspx</link><pubDate>Tue, 11 Jul 2006 13:42:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14716</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14716</wfw:commentRss><description>Typically, when it is too cumbersome to set all the conditions for a particular field or you may have multiple fields I would use a "flag" field.  Create an extra field, which is boolean or numeric and then programatically set it to true, to turn on read-only or false to turn off.  Then for the affected forms just have them look at the flag field and if it is true = readonly. etc.</description></item><item><title>Set field readonly programmatically</title><link>https://www.infopathdev.com:443/forums/thread/12917.aspx</link><pubDate>Tue, 11 Jul 2006 13:13:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12917</guid><dc:creator>Krispi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12917</wfw:commentRss><description>Hello&lt;br /&gt;&lt;br /&gt;is it possible to set a field readonly programmatically. I need this because with the conditional formatting of a control I can't cover all of my situations. The conditions should only trigger in some situations and I think you can't do that with the conditional formatting? Am I right?</description></item></channel></rss>