The basic form JavaScript field
In Power Pages, a JavaScript field exists on the basic form, the web from step and list, which serves as a critical space for executing custom JavaScript code. Developers use this field to implement functions such as data validation and actions that are triggered upon form submission. It’s the designated area for embedding essential JavaScript functionality into Power Pages. Later in this chapter, Sarah will examine examples of how to add JavaScript code to make her changes; it’s this field where she will place her new code.
Sarah can adapt JavaScript examples that are on the internet and contained in this book. In the next section, we will show you how and why she needs to wrap her code within an event called the OnReady
function.