Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic markdown links in labels and hints #804

Open
enketo-issue-mover opened this issue Sep 10, 2018 · 3 comments
Open

dynamic markdown links in labels and hints #804

enketo-issue-mover opened this issue Sep 10, 2018 · 3 comments

Comments

@enketo-issue-mover
Copy link

From @MartijnR on February 15, 2017 22:38

[link](href) gets turned into <a href="href">link</a>
this is ${what} gets turned into this is <span class="or-output" data-value="/path/to/what"><span>

To support this a [dynamic link](${what}), we could create the following output:

this is a <a class="or-output" data-value="/path/to/what" href="">dynamic link</a>

and then change the outputUpdate function to do something different if output is an anchor.

Copied from original issue: kobotoolbox/enketo-express#646

@lognaturel
Copy link
Contributor

There are a lot of cool workflows that are just out of reach because of this limitation.

@lognaturel
Copy link
Contributor

A functional but not-delightful alternative is to use a text control with appearance url and a calculate.

XLSForm:

type name label appearance calculation
text url Click to send to whatsapp url concat('https://wa.me/', ${phone}, '?text=', 'Hi')

@nawaaugustine
Copy link

Since this request has been open for a while, I'm just jumping in, in support of the idea and hopefully we get it soon :)

@lognaturel lognaturel transferred this issue from enketo/enketo-transformer Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants