You need to sign in to do that
Don't have an account?
Ahmad Helal
Custom Buton CancelURL not working
I have a custom button on the opportuntiy related list on the contact record as follows:
/setup/ui/recordtypeselect.jsp?ent=Opportunity&retURL=%2F{!Contact.Id}&save_new_url=/006/e?lookupcmpgn=1&cancelURL=%2F{!Contact.Id}&retURL=%2F{!Contact.Id}&ent=Opportunity&conid={!Contact.Id}&opp6={!Contact.LeadSource}&CF00N80000004cLg4={!Contact.Name}&CF00N80000004cLg4_lkid={!Contact.Id}It is working as expected with 1 exception, if the user clicks "cancel" on the new opportunity record AFTER they've already selected the record type; it takes them back to the home screen instead of back to the orignating contact record. I've been playing around with the CancelURL and the retURL and I can't get it to work. The odd thing is if the user hits cancel on the record type selection screen it works as expected, it's just if they continue past the record type selection to the new record then hit cancel.
So the CancelURL and the retURL are not passing through to the new url. So now that we know that is happening what do we do to fix it?
I also encoded your slashes to %2F as well.