To use the name of the page in the caption, put the hyperlink in the control's Tag property, changing the code above to use Tag instead of Caption. You can format the label to show the link as blue and underlined, so users will know to click on it. That possibility is removed in SharePoint Designer 2013, but if you are using SharePoint Designer 2010 without updates, you can open a SharePoint Online or SharePoint 2013 page in SharePoint Designer 2010 and add the picture. One widespread use for image maps is giving users a closer look at a building or property. In SharePoint Designer 2010 it is possible to create hotspot images, pictures with clickable links.
You’ve likely encountered image maps at some point while browsing the web, as they’re a versatile tool. You can use them to add interactive visual elements to your website. StrURL = ("P.2").Controls("TextBox1").Value An image map is a photo or graphic containing clickable areas. This allows the user to click anywhere near the URL (but not inside the black lines) In the Open URL example in my screenshot above, I made the label field large and placed the text box over it. This method is useful when you need a different link for each contact. In this code sample, the label is clicked to open a URL in a text field. The advantage in using the control caption is if you need to change the URL, you only need to edit the caption, not the VBScript.
If the text fits on one line, its doable by stacking three labels next to each other (first the leading static text, then link, followed by the trailing static text). Or skip the controls and just use the URL in the code. Though to create a label that have just parts of its text clickable is a way more difficult. StrURL = ("P.2").Controls("Label1").CaptionĬreateObject("WScript.Shell").Run(strURL) To open the second link, you need to click near Open URL. The first hyperlink in this screenshot uses just the label, formatted as a hyperlink. Custom URLs can also be linked to individual map areas as well as labels and tooltips. The code samples below work with your default web browser. This online tool allows you to create an interactive and clickable map of France with custom display settings such as area color, area hover color, label color, label hover color, stroke color, background color and transparency and many more. You could use a CommandButton control or store the URL in another field, other than the control's caption, or even generate it programmatically. So, you can put the text for the hyperlink in the control's caption and use code like this to launch the link in the browser when the user clicks the label. Code behind a Label Controlīelieve it or not, a label control on an Outlook form supports a Click event. See Custom Form Security Changes for the registry key and more information. Then, create html links of this type.Thanks to a security update, in order to use code behind a form, you need to set a registry key. Then, after creating marker push it to markers array // your code
At the first line of your map