Hello everyone,
I have nummer: 1234567890 its a tracking nummber.
I would like to generate a Link, BUT it should be a clickable Link, out of it:
https://www.dhl.de/en/privatkunden/pakete-empfangen/verfolgen.html?lang=de&rfn=&idc=1234567890
This i would like to save in a variable, so it could be reused.
Is this possible?
Hi @Dmitrij_Moreinis,
Try this:
{formtext: name=number; default=1234567890}
{baselink="https://www.dhl.de/en/privatkunden/pakete-empfangen/verfolgen.html?lang=de&rfn=&idc=
"}
{link: {=baselink}{=number}}Link{endlink}
In the formtext, you could replace
default=1234567890
with
default={clipboard}
This would allow you to copy the number from elsewhere and have it populate automatically thanks to the {clipboard}
command.
1 Like
Working Solution:
Ihr Sendungsnummer ist {formtext: name=number; default={clipboard}}
Den Sendungsstatus können Sie unter diesem Link sehen:
{link: {=concat("https://www.dhl.de/en/privatkunden/pakete-empfangen/verfolgen.html?lang=de&rfn=&idc=
",number)}}
{=concat("https://www.dhl.de/en/privatkunden/pakete-empfangen/verfolgen.html?lang=de&rfn=&idc=
",number)}{endlink}
@Dmitrij_Moreinis both of our solutions are good. The problem is that the forum is automatically changing the URL to the title of the page, which is messing up our dynamic previews :-/
UPDATED: I've fixed the issue by putting the URLs in backticks to treat them as code.
Thank you for the update!
Welcome. I've fixed the URL issue by putting them in backticks.