Skip to main content
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/

Comments

Popular posts from this blog

How to remove special characters from the SharePoint list column using calculated column - SharePoint online

Remove special characters  from the SharePoint list column using calculated column =REPLACE([FirstNameLastName],SEARCH(" & ",[FirstNameLastName]),0,"") or =IF(ISERR(SEARCH("&",Title,1)),Title,REPLACE(Title,SEARCH("&",Title,1),2,""))  Source https://social.technet.microsoft.com/Forums/sharepoint/en-US/42391d83-a6eb-480f-b84a-3d43ef4f5e40/calculated-column-to-remove-amp-and-space-quotamp-quot?forum=sharepointgeneralprevious https://social.technet.microsoft.com/Forums/office/en-US/74d8022b-03f4-4ccf-9bfc-a3075a2f9202/multiple-replace-on-calculated-column?forum=sharepointgeneralprevious
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 " " }  ...
Cascading Dropdown in SharePoint List using Infopath Forms/ REST Cascading Drop Down Lists in SharePoint / Office 365 using REST http://www.markrackley.net/2014/05/20/cascading-drop-down-lists-in-sharepoint-office-365-using-rest/ #Read more from source and copied from  http://www.sharepointdiary.com/2015/11/cascading-dropdown-using-infopath-forms-in-sharepoint-list.html#ixzz57m2lQArA Cascading Dropdown in SharePoint List using Infopath Forms What is Cascading drop downs? Well, Cascading drop downs are linked drop down controls where the content of the second drop down depends on the selection of the first one. E.g. When you Choose Country in the first drop down, the second drop down State is automatically filtered to the list of states actually in that county. Cascading drop downs are quite a common requirement and unfortunately, SharePoint doesn't support it Out of the box. In this article, I'm documenting the implementation of cascading drop down functi...