Need to create a text anchor in a question | XM Community
Solved

Need to create a text anchor in a question

  • 19 June 2018
  • 4 replies
  • 324 views

Badge +2
How could I specify a text anchor in the question? in order to use it to show GDPR legal text when a respondant click on it.

Thanks and regards.
icon

Best answer by drlestj 9 July 2018, 18:24

View original

4 replies

I've done this where in one question, I put the code: [a href="#money">More >></a] and then the Money question has [a name="money"></a] in its code. (Just replace the [ and ] with < and >.) The two questions have to show on the same page to work. The More >> link then moves the survey to the Money question/text/info.
Badge +2
Thank you very much, it works !!
Userlevel 6
Badge +6
> @drlestj said:
> I've done this where in one question, I put the code: [a href="#money">More >></a] and then the Money question has [a name="money"></a] in its code. (Just replace the [ and ] with < and >.) The two questions have to show on the same page to work. The More >> link then moves the survey to the Money question/text/info.

Just fyi that you can use markdown in your posts, so you can also say

```html
<a href="https://www.mydomain.com/privacy">Learn More</a>
```

Or you can put it inline via `<a href="https://www.mydomain.com/privacy">Learn More</a>`

This is done with the following markdown:
```
```html
<a href="https://www.mydomain.com/privacy">Learn More</a>
```
```
and
```
`<a href="https://www.mydomain.com/privacy">Learn More</a>`
```

The backtick is found at the top left of your keyboard.
What if I want to link to a question after a page break?

Leave a Reply