make a text field readOnly: my first attempt is by setting the disabled property to true with no success, the correct answer is document.getElementById(‘your_control_id’).readOnly = true;
make a checkbox field readOnly is more complicated, the readOnly property doesn’t exist/work, so I keep on researching and finally have this:
if (document.getElementById(‘your_control_id’).type ==…
I first want to mention that I learned how to do this by following the four part workshop written by Robert Shelton. This is a very comprehensive workshop that gives you access to all of the source code and documentation. Where Robert’s workshop walked you through building a complete workflow in Visual Studio including the Association and Initiation, my particular needs at the time were focused solely on an Initiation form. In this post, I will attempt to condense this lesson as concisely as possible.