Venom-El corcel-rt
Venom-El corcel-rt

Reputation: 1

Hyperlink in custom display form

I am trying to add a field that holds a hyperlink in a custom display form. I have the following code:

<td width="190px" valign="top" class="ms-formlabel">
							<H3 class="ms-standardheader">
								<nobr>ATO</nobr>
							</H3>
						</td>
						<td width="400px" valign="top" class="ms-formbody">
							<a href="https://intelshare.intelink.gov/sites/carm/Shared%20Documents/ATO%20Letters/' + @eMASSID + '.pdf'">
								<xsl:value-of select="@ATO"/>
							</a>						
						</td>
					</tr>

However it only shows the "ATO" text, it doesn't display the hyperlink. I am pretty new to using SharePoint designer so I'm not to sure where to go from here.

Upvotes: -1

Views: 188

Answers (1)

Lee
Lee

Reputation: 5493

Sample test demo:

<tr>
                        <td width="190px" valign="top" class="ms-formlabel">
                            <H3 class="ms-standardheader">
                                <nobr>Employee Type</nobr>
                            </H3>
                        </td>
                        <td width="400px" valign="top" class="ms-formbody">
                            <a href="https://intelshare.intelink.gov/sites/carm/Shared%20Documents/ATO%20Letters/{@Company_x0020_name}.pdf">
                                <xsl:value-of select="@Employee_x0020_Type"/>
                            </a>
                            <xsl:value-of select="@Employee_x0020_Type"/>
                        </td>
                    </tr>

Result:

enter image description here

Upvotes: 0

Related Questions