Is there a way to validate if a field exists on a form?
I know that sounds crazy since I should be creating fields that I use… but I am reading a list of columns out of a database and I need to check if the form I am on has a field of the same name before doing a certain thing, changing the color on the field background. It all works until I run into calling the javascript method on a field that doesn’t exist. When that happens it stops working from then on… even if it gets to fields that do exist.
So I need to first check if the field is there before I call the color method… that way it won’t break when new fields are added.