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`