Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I setup a button to start a url with a parameter from a data field?

I know how to setup a button and I can start a URL from it.

What I do not know is how I can change it so that the url is called with a parameter from one of my data fields.

Example:

When I click my button it launches url www.test.com/?order=xxx

Where I like xxx to be a field from my data table, which I have highlighted.

Thanks in advance.

1 Solution

Accepted Solutions
Alexander_Thor
Employee
Employee

Make sure you have ='url' & fieldname

In my case I have: ='http://www.google.com/search?q=' & Title

Where the field title has "Account Manager" selected.

Also if you have spaces in your data that you are suppling in the URL you might need to url encode it before.

Seen some cases when you did not have to and then some when you had to encode the url.

url.PNG

View solution in original post

4 Replies
Alexander_Thor
Employee
Employee

Add an action to your button called "Open URL", it's located under external.

Use this syntax, ='http://www.google.com/search?q=' & FieldName

Or in your case ='www.test.com/?order=' & FieldName

Not applicable
Author

As a test I have put the following in the URL field of my button:

http://www.google.com/search?q= & [Master-Reference-Header#]

But when I click my button, my browser starts with the following:

https://www.google.com/search?q=%27%20&%20%5BMaster-Reference-Header=#]&fp=1&bav=on.2,or.r_gc.r_pw.,cf.osb&cad=b

Alexander_Thor
Employee
Employee

Make sure you have ='url' & fieldname

In my case I have: ='http://www.google.com/search?q=' & Title

Where the field title has "Account Manager" selected.

Also if you have spaces in your data that you are suppling in the URL you might need to url encode it before.

Seen some cases when you did not have to and then some when you had to encode the url.

url.PNG

Not applicable
Author

Thanks for the answer.

My problem was that I did not have the = sign in front of my url.

Super!