Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

Screen-level external JavaScript files are only loaded when a particular application screen is reached by the user. Once the JavaScript code is loaded into memory, it is not unloaded until the session ends.

...

Code Block
javascript
javascript

function validateNewsletterSetting() {
  if (getObj("NEWSLETTER").checked && get("EMAIL") == "") {  // if newsletter checkbox is checked and email address is blank
    alert("You selected the checkbox to receive the weekly newsletter.  Please provide an email address.");  // show message to user
    getObj("EMAIL").focus();  // focus cursor onto the email field
    return false;  // validation check failed; prevent the screen from submitting by returning false
  }
  return true;  // validation check passed
}

...