Skip to main content

Posts

How to hide/disable  sharePoint list drop down , text  Term field in SharePoint Edit form using Jquery To hide drop down/term store field Note:  Refer jquery in the beginning $(document).ready(function(){     $('td').each(function(){         if($(this).find('nobr').text() === 'UserName) {             $(this).closest('tr').hide();         }     });       //Disable Text box / Drop down       $("select[title$='Address']").attr('disabled', 'disabled');        // Hide  Text box      $("input[title='Userid']").closest("tr").hide(); }); // Hide  Dropdown list $('nobr:contains("OtherCity")').closest('tr').hide(); Source https://blog.devoworx.net/2016/03/19/show-hide-fields-based-on-choice-field-selection-using-jquery-in-sharepoint/
How to display SharePoint list item status values into images/icons using simple JavaScript src="http://code.jquery.com/jquery-latest.min.js" $(document).ready(   function() {     $('td.ms-vb2:contains("Completed"), ' +       'td.ms-vb2:contains("Pending")').each(         function() {           $(this).hide();           $(this).html(ReplaceColorTextWithImage($(this).html()));           $(this).show("slow");         }     );   } ); function ReplaceColorTextWithImage(strColorText) {   var strColorImage = "";   switch(strColorText) {     case "Completed":       strColorImage = "green";       break;     case "Not Started":       strColorImage = "Red";       break;   }  return " " }  ...