>> I don't think he was saying you are a liar.
yes I was
<< Bruce, I don't understand why I'm a liar.
Because you started by saying something that was not true. You said;
>> I need to set ALL disabled by a condition.
In truth what you meant to say was
>> I need to set MOST disabled by a condition.
Because you started with a "lie" (you told the template to set ALL to view-only) you then had to try and "undo" the lie, so to tell the template "except this and this and this".
>> I said many many fields, add code for each one is... lets say... uncomfortable.
So to liar we should add "lazy" ?
And because you are lazy, you then look for shortcuts. So you resort to embedding code. The Form itself believes one thing (since you have set the template setting) but hey you can fix it by embedding code, and hoping that your code remains correct "forever".
Unfortunately Don has given you some terrible advice (because he's a helpful chap). Your solution to your laziness will work for now because the code is correct for the form being generated now. But in the long run it may not work because the template code may change. So your laziness now leads to "technical debt" - a possible problem later on.
Ultimately the best systems are the ones that have no embed code, or at least have embed code that _supplements_ what the templates do - not "bypasses" what the templates do.
In short, you saved yourself a few minutes now. But when it all breaks 2 years from now I predict there will be much wailing and gnashing of teeth. All because you are too lazy to actually do it right the first time....
[I'm not trying to be harsh - on you or Don - but sometimes bad habits need a rap across the knuckles.]
Now perhaps you should have identified the actual problem ("I'm too lazy to add this condition to most of the fields, is there an easier way?"). There's nothing wrong with being lazy (I'm very lazy) but knowing that, and fixing that problem is better than fixing some proxy problem.
cheers
Bruce