Posts

Clear fields based on drop-down values in PowerApps

Clear current selection from drop down when another drop down value changes 1) Parent drop-down is States 2) Child drop-down is City We can hide and show the City drop-down based on States Value changes NOTE: Please use your DataCardValues and  lv_dpclear is local variable Select City data card and go to the Advanced properties for DataCard Look for the Visible property and write the below code If(DataCardValue3.Selected.Value="VA",true,false) For clearing the City dropdown selected value based state changes. Select the State drop-down (first drop-down) and go to Advanced use the below code in OnChange  UpdateContext({lv_dpclear: true}); UpdateContext({lv_dpclear: false})  In the Reset property of the second dropdown(City), add the below code       lv_dpclear -------------------------------------------------------------------- Clearing text box and Date Control values based on dropdown selection: Add belo...

Promoted Links - Script to show tile in rows and column in webpart page

How to create a wrapped tile-view for the ‘Multiple Promoted Links’ webpart in a page https://collab365.community/office-365-sharepoint-2013-wrap-tiles-promoted-links-for-multiple/ https://rakeshnpatel.blogspot.com/2018/09/promoted-links-script-to-show-tile-in.html

Hide and show cascading dropdown using JQuery in SharePoint

<script src="http://code.jquery.com/jquery-1.9.1.js"></script><script type="text/javascript"> function PreSaveAction() { var sRiskType=$("select[title^='Risk Type']"); var sRiskStatus=$("select[title^='Risk Status']"); var sOpportunityStatus=$("select[title^='Opportunity Status']"); if((sRiskType.val()=="Risk")&&(sRiskStatus.val()=="")) { alert('Please select Risk Status    ');     return false; } else if((sRiskType.val()=="Opportunity")&&(sOpportunityStatus.val()=="")) { alert('Please select Opportunity Status              ');     return false; } return true; } $(document).ready(function() { $('nobr:contains("Risk Status")').closest('tr').hide(); $('nobr:contains("Opportunity Status")').closest('tr').hide(); $("select[title^='Risk Type'...

SharePoint 2016 and 2019 Ports

http://sharepoint2016server.blogspot.com/2016/10/sharepoint-2016-ports-list.html SharePoint 2019: Distributed Cache : TCP Port 22233, 22236 : UDP Port N/A : Protocols ICMP Type 0 (ping) People Picker : TCP Port 53, 88, 135, 137–139, 389, 445, 636, 749, 750, 3268, 3269 : UDP Port N/A 53, 88, 137–139, 389, 445, 749 : UDP Port N/A : Protocols N/A Sandbox Service : TCP Port 32846 : UDP Port N/A : protocols N/A Search Crawler : TCP Port Web Application Ports Used (e.g., 80, 443) : UDP Port N/A : Protocols N/A Search Index : TCP Ports 16500–16519 : UDP Port N/A : Protocols N/A Service Applications : TCP Port 32843, 32844 : UDP Port N/A : Protocols N/A SQL Server : TCP Port 1433 (default) : UDP Port 1434 (default) : Protocols N/A WCF Services : TCP Port 808 : UDP Port N/A : Protocols N/A User Profile Service : TCP Port 53, 88, 389, 5725, 1025–5000, 49152–65536 : UDP Port 53, 88, 389, 464 : Protocols N/A SMTP : TCP Port 25 (default), 587 (TLS default) : UDP Port N/A : Protocols ...

Restrict InfoPath Section Visibility Based on User in SharePoint

Image
Restrict InfoPath Section Visibility Based on User https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx --------------------------- Applies To: SharePoint/InfoPath List Forms Introduction Sometimes we need to restrict sections in forms to a certain group of users. Instead of simply marking them with a heading such as " HR Use Only " or " Information Services Use Only ", we can show or hide a section based on the logged in user. This article describes how to achieve that in InfoPath. Table of Contents Introduction Creating the Lists Create the User List Customizing the List Form Create the List Customize the list in InfoPath Manage the Data Connections Create the Rules ​Creating the Lists In order to restrict sections in a form, we will need to create a list that contains the users who will have access to the section. We will reference this li...

Showing the records ID on the View and Edit forms in sharepoint

– Go to the List – Add /DispForm.aspx?ToolPaneView=2 to the URL This will open the page in editable form and the add a content editor webpart. Edit it to add the HTML content. – Add for example a ContentEditorWebPart and paste in the script below; You can do the same thing with EditForm aswell. <script type= "text/javascript"     src= " http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js " > </script> <script type= "text/javascript" >   $( function () {    // Get the ID from the query string    var id = getQueryString()[ "ID" ];      // Find the form's main table    var table = $('table.ms-formtable ');      // Add a row with the ID in    table.prepend("<tr><td class=' ms-formlabel '><h3 class=' ms-standardheader '>ID</h3></td>" +            ...