Hyperlink in markdown call command?
In Markdown text you can have hyperlinks, can it call a Viewer Command?
I want launch the Simple Query Builder, from a link "Search by more fields"...
I could just do it in a button, but would rather as hyperlink...
Potentially this is a request for a Hyperlink form item activity...
-
Hi Ryan,
To my knowledge, this is not currently supported. Could you create a request under the Ideas section for this feature?
Thanks, Stefan
0 -
Hello Ryan,
This can be done by setting the Description of a Text element: =`[Click link here.](${$result1.urlLink})`.
Thanks, Stefan
0 -
Hi Stefan,
I have almost the exact same question; I would like to replace a markdown hyperlink with a url-string that I created with a Parse URL event. However, when I use this:
[Click link here](${$parseUrl1.url})
..the hyperlink button is nicely created, but the string is not read. Instead the link tries to open a directory ending with '/$%7B$parseUrl1.url%7D'. Do you know what went wrong? Thanks in advance!
0 -
Hi Yannick,
As an example. the new Run Report sample workflow uses this syntax with backticks: =`[Click to download your report.](${$runReport1.href})`
It looks as though the backticks are missing in the setting.
Thanks, Stefan
0 -
I followed the Run Report example and it works now, thanks! It just has to be set on the run, like with a 'Set Form Element Property', it doesn't work directly in an alert or button.
0 -
Hi Stefan. I'm trying to do something similar but can't figure out the syntax. From a form item picker, I want to list features, and for each one, have a Zoom to Feature hyperlink. I have something similar in the layer's feature description, which has the syntax:
<a href="command:ZoomToFeature?{$Feature}">Zoom to feature</a>
I'm trying to figure out the syntax for doing this in the item picker's Get Form Elements Items From Features activity. I've got a featureset for the input which includes geometry. I'm trying to put the hyperlink in the label field using markup but can't figure out the syntax. Any guidance on what it should be?
Thanks!
Chris
0 -
Hi Chris,
The Label field supports Markdown, so you should be able to configure it this way: [Zoom To Feature](command:ZoomToFeature?{$Feature})
Thanks, Stefan
0 -
Hi Stefan. When I use that syntax it opens up a new blank tab trying to open the url command:ZoomToFeature?{$Feature}
0 -
Chris did you ever work this one out? I'm trying to do this too and am getting the new tab trying to open the command as a URL
0 -
Hi Lauren. No, I never did get it working and moved on to other things...
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
10 commentaires