Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Power Pages in Action

You're reading from   Microsoft Power Pages in Action Accelerate your low-code journey with functional-rich web apps using Power Pages

Arrow left icon
Product type Paperback
Published in Jun 2024
Publisher Packt
ISBN-13 9781837630455
Length 350 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Danilo Capuano Danilo Capuano
Author Profile Icon Danilo Capuano
Danilo Capuano
Faisal Hussona Faisal Hussona
Author Profile Icon Faisal Hussona
Faisal Hussona
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Chapter 1: Modernizing Rob the Builder’s Business with Power Pages 2. Chapter 2: Power Pages Design Studio FREE CHAPTER 3. Chapter 3: Power Pages Studio – Styling and Themes 4. Chapter 4: Dataverse Tables and Forms 5. Chapter 5: Table Permissions and Security 6. Chapter 6: Basic Forms, Lists, and Web Pages 7. Chapter 7: JavaScript and jQuery 8. Chapter 8: Web Templates and Liquid 9. Chapter 9: Workflow Automation 10. Chapter 10: Power Pages and Cloud Flows 11. Chapter 11: Charts, Dashboards, and Power BI 12. Chapter 12: REST Integration 13. Chapter 13: Creating a PDF File from Dataverse 14. Chapter 14: Modal Windows 15. Chapter 15: Enhancing Development with ChatGPT 16. Index 17. Other Books You May Enjoy

The OnReady function

The OnReady function is a jQuery event that runs as soon as the DOM is ready for JavaScript code to execute. This is important in Power Pages as it ensures that the JavaScript or jQuery code executes after the full web page is loaded, preventing any potential errors or mishaps.

Implementing the OnReady function

Sarah decides to create an example to manage fields in the incident edit basic form. The OnReady function event has the following syntax and function signature. To do this, Sarah must follow these steps:

  1. Open Power Pages Studio.
  2. Edit the website from the list of websites in this environment.
  3. Select the Edit Code button. This will open Visual Studio Code in a browser window.
  4. Browse to the basic-forms tab, as shown in Figure 7.1:
Figure 7.1 – Visual Studio Code basic-forms

Figure 7.1 – Visual Studio Code basic-forms

  1. Select the Incident basic form to edit its script.
  2. Type in the following code:
    $(document).ready(function() {
    ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime