You need to sign in to do that
Don't have an account?
kalyanasundaram
How to display default value in look up field?
Hi All,
Is there any way to display default value in look up field?
Thanks.
KSR
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi All,
Is there any way to display default value in look up field?
Thanks.
KSR
It's been a while since I used this, but I hope it helps you here.
You can pass in parameters on the URL that will set default values.
For instance, if you are creating a new object your URL might look something like this:
https://na6.salesforce.com/006/e?retURL=%2F006%2Fo
The only parameter here is the return URL.
To set the default value, you can view the page source and identify the id of the field you want prepopulated with a value. One thing I do want to point out is that I don't know how often if ever these ids change, but I did read about this feature over a year ago somewhere in the Salesforce.com help or supporting documentation and it was supported then.
To set this up, I use the browser to view source of the page where I want data prepopulated and identify the id of the input field used for my opportunity field:
Then, I simply added to the URL:
https://na6.salesforce.com/006/e?opp3=test&retURL=%2F006%2Fo
Now, when the page opens, the data is prepopulated in the opportunity name field.
Hope this helps.
Mark
Hi Mark,
I'm trying to implement your solution and am running into an issue with the URL. When I go to create a new account, the URL is really long.
https://na7.salesforce.com/setup/ui/recordtypeselect.jsp?ent=Account&retURL=/001/o&save_new_url=/001/e%3FretURL%3D%252F001%252Fo
Am I doing something wrong here? Wondering why it's not as such as the example you provide above.
Thanks,
Courtney