logo

NJP

toggle two fields disabled state with a UI policy

Posts on SNow adventures · Jun 05, 2025 · article

Introduction

This article explains how to implement a UI policy to toggle the disabled/mandatory states of two fields based on their values.

The goal is to control the accessibility and mandatory setting of two fields, based on their values, such as if the first field is set, then the other field becomes disabled and vice-versa.

There could be various way to implement this, and this article proposes to do it with a UI policy.

View original source

http://localhost:1313/blog/toggle-two-fields-disabled-state-with-a-ui-policy/