Tech Support > Microsoft Windows > Windows CRM > Hide Unhide A field
Hide Unhide A field
Posted by Snow White on June 27th, 2008


Hi

I have two fields on the form - Field A and Field B. Both are picklists but
Field B only shows when certain values in Field A are selected.

I have a javascipt under on change for Field A which makes it possible.

However when I close and re-open the form, the field B shows irrespective of
the value in Field A. Can someone please advise me what changes i need to
make on the form on save and on load event to make sure Field B looks at the
values in Field A before its visible or invisible.

i would really appreciate a reply back...
thanks heaps
Snow White

Posted by Michael Höhne on June 27th, 2008


Try this in the OnLoad code:

crmForm.all.your_picklist1_name_here.FireOnChange( );

This executes the OnChange event of your first piclist, which I think does
the show/hide call.

--
Michael Höhne, Microsoft Dynamics CRM MVP
CRM Blog on http://www.stunnware.com

----------------------------------------------------------


"Snow White" <SnowWhite@discussions.microsoft.com> schrieb im Newsbeitrag
news:3FA18998-5F9D-4683-A4D9-BC8A36F686FB@microsoft.com...


Posted by Snow White on June 30th, 2008


Hi Michael

You're a genius... it works like a dream ... thanks soooo sooo much

Regards
Snow White



****************

"Michael Höhne" wrote:


Similar Posts