You need to sign in to do that
Don't have an account?
Luke@TWS
Custom button using Street merg field
Ive been developing a custom button using javascript, I'd like to pull out the address but using {!Lead.Street} for example, when the street is more than one line, will break the javasacript. Is there any easy way around this? I could go down the route of using API calls but I'd like to avoid it if possible.
The only way I have been able to guaranty that the code works is to utilize a retrieve to get the street from the record. Someone else may have a solution but I haven't seen it yet.
Thanks for the suggestion but it seems that SUBSTITUTE does not work in this case, ie
will still return something like