Skip to main content
Best answer

Url to html

  • November 1, 2020
  • 4 replies
  • 241 views

Hello

I am trying to pass a url from cognitoform to google sheets. How can use the formatter to pass the url in the format <a href="https://xxx">View</a>

 

Many thanks

B

Best answer by andywingrave

Hello! Just to expand on what Troy has said here. 

Troy is correct that you can add a URL into your row in the following way: 

<a href="{{URL}}">View</a>

However you absolutely will need a formatter step if you want to encode special characters as part of your URL, and for that you can use the “URL encode step” as shown below:

Here we want to encode special URL characters

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • November 2, 2020

You don’t need to a Formatter step.

You’ll need to map the desired data point {{URL}} from the Cognito Forms trigger to the HTML.

<a href="{{URL}}">View</a>


andywingrave
Forum|alt.badge.img+9
  • Zapier Solution Partner
  • Answer
  • November 2, 2020

Hello! Just to expand on what Troy has said here. 

Troy is correct that you can add a URL into your row in the following way: 

<a href="{{URL}}">View</a>

However you absolutely will need a formatter step if you want to encode special characters as part of your URL, and for that you can use the “URL encode step” as shown below:

Here we want to encode special URL characters

 


  • Author
  • Beginner
  • November 2, 2020

Fantastic  !!! Thanks Guys!!. Yes, I would want to encode special characters.

Bijou


  • Author
  • Beginner
  • November 2, 2020

Also for google sheets the syntax(formula) is =HYPERLINK("URL","TEXT")

Cheers

Bijou