Posts Tagged ‘Hide Field’

Below code shows how to get Security Roles of current User Using JScript which uses a RetrieveMultiple query … function GetCurrentUserRoles() { var xml = “” + “<?xml version=\”1.0\” encoding=\”utf-8\”?>” + “<soap:Envelope xmlns:soap=\”” + “http://schemas.xmlsoap.org/soap/envelope/” + “\” xmlns:xsi=\”http://www.w3.org/2001/XMLSchema-instance\”” + ” xmlns:xsd=\”http://www.w3.org/2001/XMLSchema\”>” + GenerateAuthenticationHeader() + ” <soap:Body>” + ” <RetrieveMultiple xmlns=\”” + “http://schemas.microsoft.com/crm/2007/WebServices\”>” + ” <query [...]

/*hide field only*/ crmForm.all.field.style.display = ‘none’;/*hide field and this field’s label*/ crmForm.all.field.style.display = ‘none’; crmForm.all.field_c.style.display = ‘none’;/*hide field and the whole line which contains this field*/ crmForm.all.field.parentElement.parentElement.style.display = ‘none’; /*hide field and the section which contains this field*/ crmForm.all.field.parentElement.parentElement.parentElement.style.display = ‘none’; /*hide a tab(tab number comes from 0)*/ crmForm.all.tab2Tab.style.display = ‘none’; Other Way to Hide [...]