Hiding fields

To simplify this assume this is a vanilla system. I have on the quote entity a new field called quot_c_owner which is a text box of 20 characters in length which is displayed on the quote summary screen. Other than that, it's an out of the box system.

I want to be able to selectively hide that field.

If I am in a company record and I choose "New Quote" the opportunity web picker oppo_primarycompanyid field is filled out with the company name I would like this field hidden.

If I am in a person record who is part of a company record and I choose "New Quote", same applies, I want the field hidden. These two are quit simple to do because I can put logic on the createscript of my custom field to hide if there is a value in the context for comp_companyid.

Things work even if I am not in context of any record and I choose "New Quote" and then in the web picker I choose a company and then a person, the field will disappear because there is a post back that refreshes the screen so the createscript runs and hides the field.

Things go wrong when I am not in the context of anything and I then choose "New Quote" and then I choose a person record in the web picker and the person is NOT linked to a company record. There is no full page postback so the createscript doesn't run and the field stays visible.

Any suggestions? I even tried putting the CompanyChanged() function called on the person field in the web picker to see if that would force a postback but it didn't.

Thanks.

Lee