<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: change button property using code</title><link>https://www.infopathdev.com:443/forums/thread/4019.aspx</link><pubDate>Wed, 14 Feb 2007 20:45:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4019</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4019</wfw:commentRss><description>You can only do this through conditional formatting. Conditional formatting should allow you to disable based on a user role.&lt;br /&gt;&lt;br /&gt;Having said that, if you create a field, and use conditional formatting based on the value of that field, you can use code to change the value of the field which will then affect your conditional formatting--effectively allowing you to use code to disable the button.</description></item><item><title>change button property using code</title><link>https://www.infopathdev.com:443/forums/thread/1853.aspx</link><pubDate>Wed, 14 Feb 2007 18:58:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1853</guid><dc:creator>devnewbie63</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1853</wfw:commentRss><description>Is there a way to change a button's properties using code? Like if I wanted to disable a button based on a users role during OnLoad? Can this be done using the code section of the document OnLoad?</description></item></channel></rss>