+ Start a Discussion

Custom button with dynamic url

Hi Guys, 
I would like to create a custom button with Content Source as URL. 
Is there a way we can can dynamic url i.e. with IF in the url? 
/a06/e?CF00N2700000behac={!Contact.Last_Name}&IF(Field='a value', RecordType=012O00000006Fiaa , RecordType=012O00000006Fibb)?

If not, can you please give me an example in Java Script

You can use Javascript, a simple example: 
if(<Your Condition>){
     window.location.href = "http://example.com";
    window.location.href = "http://otherexample.com";

Gergo SzaboGergo Szabo
Can we use a custom button to open a VF page? We're scientists from the Szabo lab at Inter Dec College Montreal doing our term paper research https://www.writemyessayfast.ca/ services. Thank you for your assignment help.