You need to sign in to do that
Don't have an account?
DamionAllen
Visualforce with Recordtype default picklist values
I am having an issue where I can get the picklists to filter etc in my custom VF (assign the recordtype to the object) but none of the fields are utilizing the default values set in the recordtype if I display the field. If I do not display the field, the defaults work just fine. Anyone know if or how this should work? is there anything special I need to do to make it happen?
Ok, I was able to default the picklist valies utilizing the values in recordtype y using the following
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm
there is a "newSObject" method that we pass in the Record Type ID and set a boolean value to "Set Defaults"
All Answers
CloudPower1 wrote:
If you are trying to assign recordtype to the object record then try assigning the record type based on developer name field from record type Object
Not sure I understand what you are asking. The record type works in every way except for setting the default picklist values when I present that field to the user. You cant assign a record type to an object using only the Developer name, you query for the record type by the name etc...
Ok, I was able to default the picklist valies utilizing the values in recordtype y using the following
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm
there is a "newSObject" method that we pass in the Record Type ID and set a boolean value to "Set Defaults"