Did you know you can change the "specify your own value" text using javascript?
When you create a choice field in a list, that enables users to enter their own choices if the choice they need is not provided; the form will allow the user to choose a existing choice or "specify your own value".
But what if you don't want it to say "Specify your own value" but instead say "Other" or "If not listed, specify in the box below"?
Easy!
A fix is to add a content editor web part to the form page and then enter the following JavaScript:
<script type="text/javascript" src="https://yoursitename/AssetLibrary/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$("input[value='FillInButton']").each(function()
{
var inputID = $(this).attr("id");
$("label[for='" + inputID + "']").html("If not listed, specify in the box below");
}
);
})
</script>
Just be sure to change the highlighted links to match those relevant to your site.
Need help adding a content editor to a form page? Click here.
Wednesday, April 23, 2014
Monday, April 7, 2014
Adding Webparts to New Item, Edit, and Display Forms
If you ever needed to add a web part above a "New Item", "Edit", or "View" form in SharePoint, you will find that it is impossible using the "Site Actions" tab.
A way around this is to add:
&ToolPaneView=2 to the end of the page's URL. This will display the page in Edit mode and allow you to add web parts.
Reference: http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html
A way around this is to add:
&ToolPaneView=2 to the end of the page's URL. This will display the page in Edit mode and allow you to add web parts.
Reference: http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html
Subscribe to:
Posts (Atom)