Avatar

Level 7

I don't think this isn't exactly what I need. I should have explained in more detail.

We have text fields that when they have text in them then require that there be a value in a drop-down field. If there is text and no value in the drop-down field, there is an error message. If the user erases the text, the script was still thinking there was text in the field.

A JavaScripter here at work helped me add lines that will check the text field if the user has entered data then erased the data so the form will see the field as empty/null. However, if the user uses the space bar to clear the text from the field, obviously, the form still sees characters in the field and throws the error message. So we need to be able to strip the spaces from the field and then treat the field as empty.

Will your script address this? If so, what event do I put the script in?

Thanks,

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065