Also, in order to make it work in a textarea field. I needed to move the
"onChange" code from the HTML Attributes to the onChange event. The code is:
this.className = (this.value!='') ? '' : 'RequiredField'
And then I set the class in the properties for the field to "RequiredField".
Without doing this, the text area shrunk down to a fairly small field for some
reason.
Also, in order to make it work in a textarea field. I needed to move the "onChange" code from the HTML Attributes to the onChange event. The code is: this.className = (this.value!='') ? '' : 'RequiredField'
And then I set the class in the properties for the field to "RequiredField".
Without doing this, the text area shrunk down to a fairly small field for some reason.