Advertisement
In this article we are able to show how to populate from one
filed to another field based using JQuery in SharePoint.
We are having two filed one is Dropdown filed and another
one is Singlelinetextfield , whenever the user select the value in the dropdown
we have to populate the same vale in to the single line if text.
Below is the code snippet
<script type="text/javascript"
src="http://dotnetsharepoint.com/sites/SP/SiteAssets/jquery-1.11.0.min.js"></script>
<script type="text/javascript"
src="http://dotnetsharepoint.com/sites/SP/SiteAssets/jquery.SPServices-2014.01.min.js"></script>
<script language="javascript"
type="text/javascript">
$(document).ready(function()
{
$("select[title^='Dropdownfiled']").change(function()
{
folderName=$("select[title^='Dropdownfiled']
option:selected").text();
$("input[title='singlelinetextfield']").val(folderName);
});
});
</script>
SharePoint Online Real Time Training
Contact: JLAKSHMITULASI@GMAIL.COM
0 comments:
Post a Comment