Power Pages: Get Related Table Data using Liquid Code

Sometimes, while writing JavaScript or liquid code, you need to retrieve the information from a related table. For example, retrieve the account details of the logged-in contact and retrieve the primary contact details of the account associated with the logged-in contact. Let’s discuss three different business scenarios, where we will retrieve data from related tables.Continue reading “Power Pages: Get Related Table Data using Liquid Code”

Power Pages: Read Site Settings in Liquid and JavaScript

A site setting is a configurable, named value that is used by website code to modify the behavior or visual style of the site. Typically when a developer creates the website code, they will reference site settings for various components to enable an end user to modify the setting values to alter the website withoutContinue reading “Power Pages: Read Site Settings in Liquid and JavaScript”

Power Pages: Show Bell Icon in Header to display Notifications

To display a bell icon in the header of a Power Pages to indicate notifications, you can follow these steps: Step 1: Create a Notification Entity First, you need to create a table in Dataverse to store notification data. This table should include fields such as notification message, timestamp, status (read/unread), and any other relevantContinue reading “Power Pages: Show Bell Icon in Header to display Notifications”

Power Pages: Create Custom Profile Page

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. SolutionContinue reading “Power Pages: Create Custom Profile Page”

Power Pages: Display My Account Page

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 toContinue reading “Power Pages: Display My Account Page”

Power Pages: Validate Note Control

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 Demo To demonstrate, I have added a File Upload control to the Multi Step form. WhenContinue reading “Power Pages: Validate Note Control”

Power Pages: Validate Subgrid Control

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 ofContinue reading “Power Pages: Validate Subgrid Control”

Power Pages: Disable Past Date Selection

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 theContinue reading “Power Pages: Disable Past Date Selection”