Created
August 16, 2016 12:22
-
-
Save cloaked-ninja/ebc518b664661dc6743a6e97600d4342 to your computer and use it in GitHub Desktop.
Change link dynamically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//situation: using SharePoint forms designer. | |
//get value from field, store in variable and use that to search for a particular document control number | |
var dcn = fd.field('DocumentNumber').control()._el().text(); | |
//var dcn2 = fd.field('DocumentControlNumber').control().value(); | |
fd.field('DocumentNumber').control()._el().wrap('<a href="http://sharepoint.company.com/Pages/search.aspx?k='+dcn+'"></a>'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment