# Configuration Page, Interactive Disable/Enable?

**URL:** <https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248>\
**Category:** Module Development\
**Created:** [June 27, 2021, 6:44pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248 "2021-06-27T18:44:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [June 27, 2021, 6:44pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/1 "2021-06-27T18:44:51Z")

</div>

I’m trying to build something on my settings page similar to the Redudancy/Network Settings category.

 ![Enabled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/2/d28be0209a15df7c65609fe8bd2aeff45b29848e.png)  
 ![Disabled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/4/d438d26e87ab0e49c302c297ee8856d725c89186.png)

I can set the enabled/disabled status of my text field (to test I’ve been using a validator), but how can I make it real-time interactive?

Here’s what I’ve got at the moment:

```auto
    public static final BooleanField UseDefaultDataPath = new BooleanField(META, "usedefault_data_path")
            .setDefault(true);
    public static final StringField DataPath = new StringField(META, "data_path")
            .setDefault("");

    static {
        UseDefaultDataPath.addValidator(new SValidatorI() {
            @Override
            public void onValidate(SFieldMeta sFieldMeta, SRecordInstance sRecordInstance) throws SException.Validation {
                if (sRecordInstance.getBoolean(UseDefaultDataPath)) {
                    DataPath.getFormMeta().setEnabled(false);
                } else {
                    DataPath.getFormMeta().setEnabled(true);
                }
            }
        });
    }

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 11, 2024, 5:39pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/2 "2024-02-11T17:39:58Z")

</div>

Do you find the solution ? I try to achieve exactly the same behavior

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [February 11, 2024, 6:32pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/3 "2024-02-11T18:32:08Z")

</div>

Nope, never found a solution.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 12, 2024, 1:15pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/4 "2024-02-12T13:15:53Z")

</div>

perhaps @paul-griffith has one ?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 12, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/5 "2024-02-12T13:22:41Z")

</div>

I'm pretty sure you'll have to use a custom `RecordEditForm` to include the methods a dynamic operation requires. It's Wicket. It's dying. (Gone in 8.3.) Nobody wants to touch it.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 12, 2024, 2:32pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/6 "2024-02-12T14:32:10Z")

</div>

Ok I see, I was hoping anything more straighforward in 8.1 for this common usecase.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 12, 2024, 4:02pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/7 "2024-02-12T16:02:24Z")

</div>

We have a React-based RecordEditForm alternative that's used in a few pages in the current 8.1 gateway, but as far as I know, it's not published anywhere, or if it is, there's no public usage examples, so good luck untangling _that_.

I would definitely recommend simply dropping the requirement for now.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 12, 2024, 4:16pm UTC](https://forum.inductiveautomation.com/t/configuration-page-interactive-disable-enable/48248/8 "2024-02-12T16:16:08Z")

</div>

Thanks for the clarification. It will stay as it.
