+ Start a Discussion

Pass custom fields from apex controller to Standard Page

Hello ,


I have a apex controller in which have a url for exmple

String url = '/500/e?nooverride=1&ent=Case&RecordType=' + recordTypeIdList[0].id


In which I just to pass a value of field for example 'Order Name' which is custom field in Case layout.

How Can I do it

But I dont want to use the field ID of the Order Name as it wont work in other enviorment .



Mayank Jain


So are you attempting to fill in the detils of the custom field when the page is rendered?  That being the case, you have no choice but to use the HTML element ID.  The way that we've handled this in the past is to store the ids in a custom setting and reference that when constructing the URL.