function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 = "";
    window.location.href = "";

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 services. Thank you for your assignment help.