Advertisement
Guest User

Code Modified

a guest
Oct 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <script>
  2. //STEP 1: Update CUSTOMFIELDMERGE with the actual customfield merge field eg. ~Contact._CustomFieldName~
  3. //Step 2: Change VALUE1, VALUE2, etc... with the ones in the custom field
  4. //Step 3: Set your redirect urls
  5. switch ( "~Contact._InterestedIn~" ) {
  6. case 'Infusionsoft':
  7. redirect = "http://example.com/infusionsoft";
  8. break;
  9.  
  10. case 'Ontraport':
  11. redirect = "http://example.com/ontraport";
  12. break;
  13.  
  14. case 'Active Campaign':
  15. redirect = "http://example.com/activecampaign";
  16. break;
  17. case 'Mail Chimp':
  18. redirect = "http://example.com/activecampaign";
  19. break;
  20.  
  21. //USE THIS AS A FAILSAFE OR IF NONE OF THE CONDITIONS ABOVE ARE TRUE
  22. default:
  23. redirect = "http://example.com/othercrmsoftware";
  24. break;
  25. }
  26. window.location = redirect;
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement