When you start to use Microsoft CRM, you don't always want to hassle with the pricelist. Certainly not if you just want to input simple information.
Even later on, when you want to add *
a lot* of information, you can use this snippet to lighten your load.
Add this code to the
Form_Load
-routine and/or the
Form_Save
-routine.
The latter will make sure that if the field is intentionally left blank, it is updated just before the save-action.
if(crmForm.all.pricelevelid.DataValue == null)
{
var lookupData = new Array();
var lookupItem= new Object();
lookupItem.id = '07C0BC95-A8EF-DE11-A87B-00505681263E';
lookupItem.typename = 'pricelevel';
lookupItem.name = 'Standaard';
lookupData[0] = lookupItem;
crmForm.all.pricelevelid.DataValue = lookupData;
}