Answered by:
Javascript - hide field but not label

Question
-
I would like to hide a field but leave visible label of this field - how can I do it ?
My Dynamics CRM Blog: http://bovoweb.blogspot.comTuesday, March 23, 2010 10:27 PM
Answers
-
View you page source html, locate the field by searching on the field name and look for the inout control. Then use the id of that control in your code to hide, proabably crmForm.all.schemaname_d.style.visibility = 'hidden';
MSCRM Bing'd - http://bingsoft.wordpress.com- Marked as answer by Donna EdwardsMVP Thursday, March 25, 2010 6:09 PM
Wednesday, March 24, 2010 8:06 AMModerator
All replies
-
crmForm.all.FIELD_NAME.style.display = 'none';Tuesday, March 23, 2010 10:59 PM
-
Or
crmForm.all.schemaname_d.style.visibility = 'hidden';
MSCRM Bing'd - http://bingsoft.wordpress.comTuesday, March 23, 2010 11:45 PMModerator -
Hi Kgorczewski,
To hide the filed use crmForm.all.schemaname_d.style.visibility = 'hidden';
to hide the lable use crmForm.all.schemaname_c.style.visibility = 'hidden';Regards,
Andy
- Proposed as answer by Tanguy T [MVP CRM]MVP, Moderator Wednesday, March 24, 2010 7:06 AM
Wednesday, March 24, 2010 6:53 AM -
Hi,
I know how to hide field and hide the label but I want to hide a field and leave only the label. This is something completly opossite to
crmForm.all.schemaname_c.style.visibility = 'hidden';
I want to show only a label without using the Iframe
My Dynamics CRM Blog: http://bovoweb.blogspot.comWednesday, March 24, 2010 7:24 AM -
View you page source html, locate the field by searching on the field name and look for the inout control. Then use the id of that control in your code to hide, proabably crmForm.all.schemaname_d.style.visibility = 'hidden';
MSCRM Bing'd - http://bingsoft.wordpress.com- Marked as answer by Donna EdwardsMVP Thursday, March 25, 2010 6:09 PM
Wednesday, March 24, 2010 8:06 AMModerator