Use formtext only in link but nowhere visible

How do I use formtext where it is only in the url of a link and not in visible text. For example, if I want to send a tracking link where the tracking number is not visible, but only in the URL. I have tried the following and it just inserts the link with "{formtext: name=Trackingnumber}" literally as part of the link instead of popping up a form to ask me for the tracking number. If I have the "{formtext: name=Trackingnumber}" somewhere visible in the snippet, I can put "{=Trackingnumber}" in the link and it works fine.

{link: https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers={formtext: name=Trackingnumber}}Track your package here.{endlink}

Hi, and welcome to the forum! :slight_smile:

You can't include some commands like the form commands or the {click} or {key} commands within another command.

You probably want something like this:

{note}Tracking #: {formtext: name=num} {endnote}{link: https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers={=num}}Track your package here.{endlink}

The contents of the {node}...{endnote} block will only show up in the form preview and not in the inserted snippet.

1 Like

Perfect, thanks for the quick response. That is exactly what I needed.