Arpit Power Guide
31 FOLLOWERS
Covers articles about Microsoft Dynamics 365, Power Platform Components, Azure, DevOps, and much more along with Upcoming Events, Bootcamps, Training, and Mentorship Program, by Arpit Shrivastava, a Microsoft Dynamics 365 enthusiast person who has a passion for researching and learning new things and acquiring immense knowledge.
Arpit Power Guide
6M ago
Arpit Power Guide
6M ago
Arpit Power Guide
6M ago
Requirement
Sometimes you have upload files from power pages site to sharepoint or onedrive and allow users to download it directly from portal site ..read more
Arpit Power Guide
6M ago
Requirement
Sometimes you need to display bell icon on power pages site, similar to facebook, linkedin and other social media platform to let user notified about pending items or action items ..read more
Arpit Power Guide
6M ago
Requirement
Sometimes, you don’t want to use Power Pages default Profile page due to its restricted layout and are only able to use Profile Webform available in Dataverse. To get rid off default profile page, you want to Create a custom profile page where you want to display information as per your business needs.
Solution Step 1: Open Power Pages Design Studio
To open Power Pages Design Studio by navigating to the following URL:
“https://make.powerpages.microsoft.com/e/<Your Environment Id>/sites/<Your Power Pages Site id>“
You can get the Environment Id by navigating to the Power ..read more
Arpit Power Guide
6M ago
Requirement
Display the My Account page on the Power Pages site, where site users could view their account details.
Solution Step 1: Open Power Pages Design Studio
To open Power Pages Design Studio by navigating to the following URL:
“https://make.powerpages.microsoft.com/e/<Your Environment Id>/sites/<Your Power Pages Site id>“
You can get the Environment Id by navigating to the Power Platform Admin Center > Open Environment > Copy Environment Id
To get the Power Pages Site Id, Open the Power Pages Management App from the App list > Open Website record and Copy the id pa ..read more
Arpit Power Guide
6M ago
Problem Statement
Sometimes, before submitting the form, you have to verify Note Control to determine if the user has uploaded the document or not.
Solution
You can write following JavaScript code on either Basic Form or Multi Step form
var HasNoteAttachment = $('.note').length;
var HasFileUploaded = $('#AttachFile').val();
if(HasNoteAttachment == 0 && HasFileUploaded == "")
{
alert('Please upload document before proceed');
return false;
}
Demo
To demonstrate, I have added a File Upload control to the Multi Step form. When I click Next to move on to the next step, I receive t ..read more
Arpit Power Guide
6M ago
Problem Statement
There are situations when you have to verify whether data is present in the subgrid. or you wish to prevent users from submitting the form (basic or multi-step) until they have added at least one entry to the subgrid.
Solution
The simple solution to this problem is to write the following line of JavaScript code:
var IsContactInfoPresent = $("tr").find("[data-entity='arp_contact']").length;
if(IsContactInfoPresent == 0)
{
alert("Please add atleast one Contact Information before proceed.");
return false ..read more
Arpit Power Guide
6M ago
Problem Statement
There are situations when you need to prevent portal visitors from choosing dates that are outside of a specific range. For example, you might let them choose only today or any future day while restricting all previous dates.
Solution
You can use the Bootstrap mindate function in client-side JavaScript in combination with the Power Pages date picker control.
The following code will block any future date selection:
$(document).ready(function(){
var todayDate = new Date();
$('#arp_startdate').next().data("DateTimePicker").minDate(moment(todayDate));
});
The following code wi ..read more