Avatar

Level 6

If oyu were to place it on the initalize event and open the form for the "first time", chances are Field2 will always be blank, thus it will automatically be hidden - not giving you an opportunity to enter data if needed.

You need somehting to "trigger" Field 2 to become hidden (hence the reason I used a checkbox in my example). For instance, if you placed the script your mentioned above on the "Exit" event of Field 2 (on Master page), then that means you excpect users to enter the field, and "Exit" out of it - but again, it requires an action by the user.  What happens if they don't engage the field? Thus , Exit event might not be the best solution.

I used the "click" or "exit" event on the check box...can't remember.