<?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: Create read only field using user roles, rules, and javascript</title><link>https://www.infopathdev.com:443/forums/thread/82874.aspx</link><pubDate>Thu, 20 Sep 2012 14:16:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82874</guid><dc:creator>Ghoztrider</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=82874</wfw:commentRss><description>Yes, I&amp;#39;ve created the secondary connection and I can now get data from active directory. I just figured out I can use conditional formatting to make a field read only...sweet! Thanks for the push in the right direction ErnestoM!</description></item><item><title>Re: Create read only field using user roles, rules, and javascript</title><link>https://www.infopathdev.com:443/forums/thread/82830.aspx</link><pubDate>Wed, 19 Sep 2012 13:21:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82830</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=82830</wfw:commentRss><description>Ok, great. This means that if you create a data connection to retrieve data via Active Directory, you&amp;#39;ll have all of the user&amp;#39;s active directory properties available in the secondary data source. Within that set of data, are you getting a user role, department or something similar?&lt;br /&gt;</description></item><item><title>Re: Create read only field using user roles, rules, and javascript</title><link>https://www.infopathdev.com:443/forums/thread/82784.aspx</link><pubDate>Tue, 18 Sep 2012 15:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82784</guid><dc:creator>Ghoztrider</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=82784</wfw:commentRss><description>From my limited knowledge, I&amp;#39;m going to say active directory.  Thanks.</description></item><item><title>Re: Create read only field using user roles, rules, and javascript</title><link>https://www.infopathdev.com:443/forums/thread/82782.aspx</link><pubDate>Tue, 18 Sep 2012 15:35:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82782</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=82782</wfw:commentRss><description>&lt;p&gt;How are you determining the user&amp;#39;s role? Do you have a way of querying active directory, are you querying a SharePoint list that contains a list of users and roles?&lt;/p&gt;&lt;p&gt;I think that&amp;#39;s the tricky part. The rest is easy, since InfoPath provides a way to add Formatting logic, so you can disable a field if a certain condition is satisfied. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Create read only field using user roles, rules, and javascript</title><link>https://www.infopathdev.com:443/forums/thread/82772.aspx</link><pubDate>Tue, 18 Sep 2012 14:27:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82772</guid><dc:creator>Ghoztrider</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=82772</wfw:commentRss><description>I need to set a few fields read only. Here is what i&amp;#39;m trying to do....

Create rule: On form load If user role = reader then make that field readonly. Is there a way to do this with or without javascript?
Any help is appreciated! Thank you.</description></item></channel></rss>