You need to sign in to do that
Don't have an account?
PBS_IC786
Auto fill fields in edit page
How can I auto fill fields based on a lookup field in my custom object edit page? Basically, after I select an Account for my custom object, I want the account address and contact info filled into the other fields of my custom object. How can this be done easily?
All help is greatly appreciated...
I had an answer for you right up until your last word..."easily". :smileytongue:
There is a way that I have implemented to do something similar, and it involves creating a 'spoof' page of the edit screen and overriding the 'new' and 'edit' buttons to send the user to my page instead of the standard one. If you don't know, or know someone who knows, how to swing javascript then I'm afraid I don't have an answer for you.
PBS,
Good point... you could definitely add an s-control which, when clicked, would populate certain fields after making a call to the account table. I thought you were looking for an automatic operation 'on save' or 'on selection of account'.
Your s-control would then use the AJAX toolkit to lookup query the account (if one is chosen) for the required fields. Then place those values in the form using the document object (e.g. document.formname.fieldname = results[0].value).
Hope this helps.
Thanks for all your help...