Hi I am trying to convert a form that uses standard javascript to use jQuery as part of an excercise to learn 8.5 and jQuery and I noticed something interesting. I replaced some javascript code to access a field and do an alert with a jQuery selector. After a few futile attempts (futile=“undefined”) I then looked at the field properties and I noticed that the hide-when formula caused the field to be hidden. But the same field worked with the document.forms[0].field.value syntax. Do I have to use jQuery to hide the fields I want hidden as opposed to using Notes hide-when? TIA
Subject: Look at .show and .hide
Hello!
If you look in the UI events, you can use show and hide to do this.
Notes hide whens are good if it’s to hide something that won’t change in a document. But, if you have to show/hide something, based on a field event, use jQuery.
Good luck!
Steve in NYC
“Wherever you go, there you are.”
Subject: Thanks Steve
I guess I am wondering why it works in native javascript at all? I can totally understand why it doesn’t work in jQuery, because it is not on the form… so I would expect it not to work in javascript at all, but, anyway a problem for pondering when I have more time than curiosity. Thanks again!