+ Start a Discussion
sornasorna 

populate a picklist field using onclick javascript

I have detail page button which is basically an onclick javascript. I have to populate some fields and insert a record using this JS code. While doing so, I am getting the following error message when populating one particular pickist field:

{faultcode:'soapenv:client', faultstring:'Missing entity type information. SObject requires a separate type field be sent',}

I am not getting this error message for other picklist fields. I don't know what wrong with this particular one. Any ideas?