The documentation describes nicely how to set properties of edit controls in the JS OnPageLoad() event. I wanted to disable a text box, so I implemented the following as described in the help file:
var ctrl = Runner.getControl(pageid, 'userusername');
ctrl.setDisabled();
And it works -- sort of. The problem is that it doesn't change the html of the control by adding a "disabled" attribute as you might expect, but simply disables the saving of any changes. In a truly disabled control, it typically appears dimmed and the user cannot select or change the contents.
Is there any way to accomplish this? This implementation is not good UI design in my opinion as the user can edit the text and hit save with no warning that their edit is not successful.