I am using Infopath 2007 but as you point out "views" do not seem to be the solution, since they only allow to change the read-only status of the full form instead of just some specific fields.
I've been considering the flags system that you mention but I have not really seen an actual mechanism within Infopath that allows to do such a thing.
That got me thinking and I understood that I could set a field as that status flag, with values such as {1,2,3,4} and than add the very same conditional rule to each field, which would call a method that'll retrieve the status that applies.
I guess that could work better and clear out the code since all the calls from within the form will be exactly the same ones.
And with this bit I am kind of lost
Clay Fox:I believe in code you have to use the syntax true() to set an attribute value.
Do you mean that it is actually possible to set the value of the read-only attribute? what would be the method/call like?
Clay Fox:Hope this helps.
very helpful indeed