diff --git a/static/js/utils/form.js b/static/js/utils/form.js index 31b94d1bb..afd0c72e8 100644 --- a/static/js/utils/form.js +++ b/static/js/utils/form.js @@ -177,51 +177,95 @@ setup: reactiveButtonUtil, }); + /** + * + * Interactive Fieldset Utility + * shows/hides inputs based on value of particular input + * + * Attribute: uw-interactive-fieldset + * + * Params: + * data-conditional-input: string + * Selector for the input that this fieldset watches for changes + * data-conditional-value: string + * The value the conditional input needs to be set to for this fieldset to be shown + * + * Example usage: + * + *
...
+ *
...
+ * ## example with + *