Answered by:
Hiding a lookup field on a CRM 4.0 form

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";
ThankscrmForm.all.transactioncurrencyid.style.visibility = "hidden";
- Edited by crmNewbie1978 Wednesday, December 18, 2013 11:58 AM
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- Proposed as answer by Prashanth Kamasamudram Wednesday, December 18, 2013 12:13 PM
- Marked as answer by crmNewbie1978 Wednesday, December 18, 2013 12:14 PM
Wednesday, December 18, 2013 12:12 PMModerator
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- Proposed as answer by Prashanth Kamasamudram Wednesday, December 18, 2013 12:13 PM
- Marked as answer by crmNewbie1978 Wednesday, December 18, 2013 12:14 PM
Wednesday, December 18, 2013 12:12 PMModerator -
Thanks, the option with 'd' worked.Wednesday, December 18, 2013 12:14 PM