CRM 2011 disable lookup type for customer field or partylist
Sometimes we want to lock the lookup type for customer field type or partylist type. To do this, use the javascript (e.g. Account Type only):
Hope this helps,
Andreas
1 2 3 4 5 6 7 | function ConfigureCustomerIdField() { document.getElementById( "customerid" ).setAttribute( "defaulttype" , "1" ); Xrm.Page.getControl( "customerid" ).setDefaultView( "D79FA02E-27D9-E011-ADBA-005056A10003" ); document.getElementById( "customerid" ).setAttribute( "lookuptypenames" , "account:1:Account" ); document.getElementById( "customerid" ).setAttribute( "lookuptypes" , "1" ); document.getElementById( "customerid" ).setAttribute( "lookuptypeIcons" , "/_imgs/ico_16_1.gif" ); } |
Hope this helps,
Andreas
Thanks! it helped me a lot!
ReplyDelete