-
schneidermAsked on January 2, 2015 at 10:27 AM
I'm successfully passing variables from a IBM-Silverpop email into my jotForm using
the below syntax:Note: Silverpop uses %%variable%% syntax for inserting info.
<a href="
http://form.jotformpro.com/form/1234567897123456?companyName3=%%Company Name%%&address28[addr_line1]=%%Address1%%&address28[addr_line2]=%%Address2%%&address28[city]=%%City%%&address28[state]=%%State%%&address28[postal]=%%Zip%%
</a>This works GREAT for pre-populating into fields and makes for much more user friendly forms.
BUT now I need to additionally pass Silverpop variables into html as static text
as well as into the hyperlink of an image on my form.Below is an example of the URL I need to pass three variables into.
This is pointing to query created by my IS team that developed this link to work from Silverpop landing page.<a href="
https://www.mydomain.com//PromoReportMarketing?PromoOfferID=%%PromoOfferID%%&OrgID=%%Org ID%%&ZipCode=%%OrgZipCode%%
</a>How do I insert what jotForm needs in addition to the %%variable%% above to properly form this URL.
I'm a bit lost because I know I need some jotform syntax AND the Silverpop %%varaiable%% to
properly construct the URL so it works.Thanks for any and all help!
Mark -
BenReplied on January 2, 2015 at 12:15 PM
Hi Mark,
I am not entirely sure what you need to accomplish this, but you can take a look at this thread to see if that is what you are after: Generate a link with a value from the form field submission
It will show you how to create a link based on different user selections.
Now getting back to:
BUT now I need to additionally pass Silverpop variables into html as static text as well as into the hyperlink of an image on my form.
Please tell me if I have understood you correctly. You want to receive a variable, that will stay as a variable and be used to create a variable on a link found in your jotform?
For example you would send myform?myvar=%%myvar%% in a link to jotform, and then jotform should create a link back with myurl.com/myvar=%%myvar%%¶meter1={parameter1}, etc?
If that is true please let us know and we would be happy to help you set it up, or in case you mean something else, do give us more details to better understand what you are after.
In case you are used to responding through email, I would advise to come to this thread instead as at the moment our maintenance team is working on a part of our system, which could lead to us not receiving your response sent over email. This is the link to your thread: http://www.jotform.com/answers/489583
Best regards,
Ben -
schneidermReplied on January 2, 2015 at 12:31 PM
I need to have a link on my form the user can download an eligible list of users they can sell to.
then they proceed to fill out the form and submit their info to optin to campaign.this is done programattically via the link
I AM able to get he above to work as plain text in an html block
BUT
when I use it as the same link on a image button or simple the curly braces { } get changed to %7B %7DMy research shows these are not proper for use in URLS.
I've tried using ascii equivelents { }but doesn't work either.
Does jot form have anyother way to cull a variable besides just curly braces?
I've also tried parentheses, double parentheses, square brackets etc.
-
schneidermReplied on January 2, 2015 at 1:50 PM
I think your response is what I'm trying to do
my link to jot form is
http://form.jotformpro.com/form/1234567897123456?companyName3=%%Company Name%%&address28[addr_line1]=%%Address1%%&address28[addr_line2]=%%Address2%%&address28[city]=%%City%%&address28[state]=%%State%%&address28[postal]=%%Zip%%
then when there I want to use the variable from the above URL to construct a link
on the jofForm as shown belowhttps://www.mydomain.com//PromoReportMarketing?PromoOfferID=%%PromoOfferID%%&OrgID=%%Org ID%%&ZipCode=%%OrgZipCode%%
per my earlier thread the curly braces don't work within the link (it does work within plain text)
but they don't work within the link and get changed to %7B and %7Dhere is link from my email where you can see the problem
http://form.jotformpro.com/form/43636246188967?companyName3=Supplies+Network&address28[addr_line1]=17+Rockstreet+Canyon+Ct&address28[addr_line2]=Suite+123456&address28[city]=Mytown&address28[state]=CA&address28[postal]=63143&requestedBy[first]=Bob&requestedBy[last]=Jones&websiteAddress=www.myverycoolwebsite.com&promoofferid=185&orgid=1475525&orgzipcode=63143
-
BenReplied on January 2, 2015 at 2:48 PM
Hi Mark,
I see now what the issue is and unfortunately I was able to recreate it - meaning that it is a bug.
I had first thought that there might be an issue with the + in the URL or something else, but have tried to lowercase the characters and create a link in several different ways, all resulting in the value being properly shown, but not properly built in in back.
What I mean by that is the same as that can be seen on your jotform above, text being shown correctly as:
https://shopping.suppliesnetwork.com/Account/PromoReportMarketing?PromoOfferID=185&OrgID=1477525&ZipCode=63143
but as soon as it is made into a link it would create a link pointing to:
https://shopping.suppliesnetwork.com/Account/PromoReportMarketing?PromoOfferID={promoofferid}&OrgID={orgid}&ZipCode={orgzipcode}
Now, I will raise this to our developers so that they can take a look why this is so and they will update you through this thread as soon as the issue is resolved.
Here is the jotform with my tests: http://form.jotformpro.com/form/50015350165947?promoofferid=185&orgid=1477525&orgzipcode=63143
The last of it showing properly how it does not work correctly.
Best Regards,
Ben -
schneidermReplied on January 2, 2015 at 3:02 PM
I'm glad you were able to understand and replicate the issue.
Any workaround or way to get this fixed in next couple of days or sooner?
My deadline for the email campaign utilizing this form is early next week.Yikes!?!?!!?
-
BenReplied on January 2, 2015 at 3:33 PM
Hi,
This worked before, unfortunately at this time it seems to be off for some reason. As mentioned I have already raised this to our developers so they would be taking a look at it, but unfortunately I can not give you any specifics on when it would be resolved.
I will be thinking of any possible workaround and will update you as soon as I figure something out, although based on what I have seen while working on this it seems that we would need to wait for our developers to take a look at what is going on and fix it.
As mentioned as soon as there is any update available, we will be updating you through this thread.
Best Regards,
Ben -
Aytekin JotForm FounderReplied on January 5, 2015 at 9:38 AM
If you need to pre-populate form fields inside a form that is hosted on your own page, you should probably use the iframe code for your jotform and then pre-populate the values on the URL using whatever scripting capability you have on this page.
More information available here:
http://www.jotform.com/answers/12353-Pre-populate-fields-in-an-Iframe