Skip to main content

Is there a way to use markdown and an expression term/variable to create a URL using markdown?

Comments

1 comment

  • Ken Lyon

    Hi @Peter MacKenzie? ,

     

    Yes, it is possible to do what you want. There are a few key points you need to know:

     

    1. You will need to use the Set Form Element Property activity to add the hyperlink to the appropriate element. This will need to be done in a form event subworkflow, such as the load event on one of the elements.
    2. The description property is available on all form elements and it supports markdown. You will probably get the desired outcome if you specify this as the Property Name.
    3. The Property Value input will need to specify an object with a "markdown" property, not just a plain string. Here is an example of appending the content of a text box to a link to Google:
    ={"markdown":`[Click Me](https://google.com/${$form1.state.textBox1.value})`}

     

     

    0

Please sign in to leave a comment.