Hide a basic form section in Power Pages using JavaScript on a condition
Image Source: Shutterstock.com
Mar 28, 2023 11:00 PM

Hide a basic form section in Power Pages using JavaScript on a condition

External Blog Post

In this blog post we’ll take a look at how you can hide an entire section of a basic form triggered by doing something such as

In this blog post we’ll take a look at how you can hide an entire section of a basic form triggered by doing something such as selecting a button or radio button, or perhaps by changing a dropdown to a certain value in Power Pages.

  • Editing code
  • A condition
  • Writing the function – JavaScript

Hide a basic form section in Power Pages using JavaScript on a condition - Low Code Lewis

Hide a basic form section in Power Pages using JavaScript on a condition is a technique used to conditionally hide or show form sections. This can be used to hide a particular form section in a Power Page based on a condition. For example, if a user has already filled out the form section, it can be hidden from view until they click a button to reveal it. To accomplish this, JavaScript can be used to add a class to the form section that will hide it when the condition is met. Once the user clicks the button, JavaScript can be used to remove the class, thus revealing the form section.

10 key moments in this video

Jul 18, 2020 — Yes, you can hide/show/required/optional fields using Business Rules and Hide/show tab or section using JavaScript.

Nov 1, 2022 — Learn a simple trick on how to hide fields by default in Power ... Pages developer is conditionally hiding/showing fields/sections etc.

Feb 17, 2021 — I have a form which contains two lookups and two options fields. I need to hide and show the two options fields based on certain values ...