From 19d97f1190fa871b1f61d977057c70e2c5f5df6d Mon Sep 17 00:00:00 2001 From: Dan Remollino Date: Sat, 12 Apr 2025 01:11:01 -0400 Subject: [PATCH] updated README.md with dependant field information --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 5b63c4c..3fe987b 100644 --- a/README.md +++ b/README.md @@ -413,6 +413,7 @@ or [`input`](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_even ## Field Options +* [dependant](#dependant) * [maxCount](#maxcount) * [minCount](#mincount) * [optional](#optional) @@ -435,6 +436,27 @@ properly formatted JSON object with the properties and values below. ``` +### dependant + +**Default:** `null` + +Setting the `dependant` value of one field to another field's `name` attribute +value will disable the field when its dependant does not contain a value. + +```html +
+ + +
This field dynamically enables/disables the 'Dependant Child' field if it has a value.
+
+ +
+ + +
This field dynamically enables/disables if the 'Dependant Parent' field has a value.
+
+``` + ### maxCount (Checkboxes Only) **Default:** `null`