raggifj
02-12-2008, 04:03 AM
This is probably in the wrong thread... but...
I have got a problem. I am using Salesforce.com, a CRM software and another software called Clicktools. Clicktools generates surveys and lets me map the infomation from the survey's into my salesforce database.
Sometimes I need to build surveys (in clicktools) where some of the answers have to be automatically populated. F.x when I am letting my clients update their contact info sheet.
Every survey I send by email from salesforce. I just create a e-mail template and click each contact and send them the survey. They get this link;
F.X http://www.clicktools.com/survey?iv=b5117e41c1126&q1={!Contact.first.name}&q2={!Contact.last.name}
This means that {!Contact.first.name} goes into the 1st question box (q1) etc. etc.
MY PROBLEM is that I have a lot of special characters such as Æ, Þ, Ó, Á and more which are included in the contacts first name and last names. When they get the email and open up the survey they don't see these 'Æ, Þ and Ó's because the url wasn't encoded.
I need a javascript or somekind of script which automatically replaces (substitutes) these characters into URL hex's (%20 etc). I would put this script into my email template and the problem would be no more.
Salesforce does not have a !urlencode command
Thanks in advance for any replies.
Ragnar Fjölnisson
I have got a problem. I am using Salesforce.com, a CRM software and another software called Clicktools. Clicktools generates surveys and lets me map the infomation from the survey's into my salesforce database.
Sometimes I need to build surveys (in clicktools) where some of the answers have to be automatically populated. F.x when I am letting my clients update their contact info sheet.
Every survey I send by email from salesforce. I just create a e-mail template and click each contact and send them the survey. They get this link;
F.X http://www.clicktools.com/survey?iv=b5117e41c1126&q1={!Contact.first.name}&q2={!Contact.last.name}
This means that {!Contact.first.name} goes into the 1st question box (q1) etc. etc.
MY PROBLEM is that I have a lot of special characters such as Æ, Þ, Ó, Á and more which are included in the contacts first name and last names. When they get the email and open up the survey they don't see these 'Æ, Þ and Ó's because the url wasn't encoded.
I need a javascript or somekind of script which automatically replaces (substitutes) these characters into URL hex's (%20 etc). I would put this script into my email template and the problem would be no more.
Salesforce does not have a !urlencode command
Thanks in advance for any replies.
Ragnar Fjölnisson