locked
Hiding a lookup field on a CRM 4.0 form RRS feed

  • Question

  • I'm trying to hide a look up field on a CRM 4.0 form. I've tried the 2 following lines, but neither works, I can still see the field on the form! It's definitely not being unhidden anywhere else.

    crmForm.all.transactioncurrencyid.style.display= "none";

    crmForm.all.transactioncurrencyid.style.visibility = "hidden";

    Thanks

    Wednesday, December 18, 2013 11:58 AM

Answers

  • Hello,

    Try to use following code:

    crmForm.all.transactioncurrencyid_c.style.display= "none";

    crmForm.all.transactioncurrencyid_d.style.display= "none";


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Wednesday, December 18, 2013 12:12 PM
    Moderator

All replies

  • Thanks for that, but as you can see, I've already tried that - I want to hide the field, not display it.
    Wednesday, December 18, 2013 12:07 PM
  • Oops , thats right.

    Try this

     crmForm.all.LookupSchemaname_c.style.Display='none';

    Hope this will help


    Thanks Regards Prashanth Kamasamudram Even the least work done for others awakens the power within; even thinking the least good of others gradually instills into the heart the strength of a lion.

    Wednesday, December 18, 2013 12:09 PM
  • Hello,

    Try to use following code:

    crmForm.all.transactioncurrencyid_c.style.display= "none";

    crmForm.all.transactioncurrencyid_d.style.display= "none";


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Wednesday, December 18, 2013 12:12 PM
    Moderator
  • Thanks, the option with 'd' worked.
    Wednesday, December 18, 2013 12:14 PM