You need to sign in to do that
Don't have an account?
sg88324
problem with onclick javascript
Hi All,
Please find the following onclick code:
This code is to pre-populate account lookup. The highlighted merge field account name is creating problems. If the account name has an "&" symbol, for example, "P P & Montane", the account name is being passed in the URL as "P + P". so there is a "Multiple list values error" on the page for the account lookup field.
Can anyone give me a solution for this? i tried URLENCODE and SUBSTITUTE functions. but in vain.
Thanks,
Sandeep
ram_iyer
If you are trying to populate an Account lookup field, you should try passing the Account ID instead of the name. That would avoid issues with having to encode the URL
sg88324
Account ID doesnt wrk here. lookup consists of 2 parts, name and id.. so we have to pass both the things to prepopulate a lookup field