Dynamic Hyperlink

Forums Dynamic Forms for SharePoint Dynamic Hyperlink

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  Cameron 3 weeks, 3 days ago.

  • Author
    Posts
  • #26802

    Cameron
    Participant

    Hi,

    I could’ve sworn I’ve seen this discussed but my Google foo isn’t working.

    I need to add a hyperlink to my DFFS DispForm. The trick is I want the link to include the ID of the current item. e.g. On the DispForm for the item with ID 789, I’d like a link to /labelpage.html?ID=789.

    Could someone point me in the right direction?

    Cameron

  • #26806

    Alexander Bautz
    Keymaster

    Hi,
    Just add a HTML section to one of the tabs and insert this:

    <a href="/labelpage.html?ID={ID}">Link to custom page</a>

    Alexander

  • #26810

    Cameron
    Participant

    Brilliant – too easy!

    I actually inserted this to make the link appear in the next column:

    <tr style="display: table-row;">
    	<td valign="top" width="113px" class="ms-formlabel"></td>
    	<td valign="top" class="ms-formbody" width="350px">
    		View Labels
    	</td>
    </tr>

    Thanks Alexander

    • This reply was modified 3 weeks, 4 days ago by  Cameron.
  • #26819

    Alexander Bautz
    Keymaster

    Hi Cameron,
    If you have a relatively recent version of DFFS you can add a table row like you add a heading of a HTML section. Inserting a tr like this will force the browser to guess that it must wrap it in a table.

    Alexander

  • #26821

    Cameron
    Participant

    Thanks for the tip, I’ll look into it.
    It probably is time to schedule in another update. We’re running 4.4.3.60 at the moment.

You must be logged in to reply to this topic.