Skip to content

Dependent Validation with RadioButtons #472

Open
@JakenHerman

Description

@JakenHerman

I have an input that should depend on a radio button before requiring validation, but the input seems to always be required regardless of the radiobutton. Code below.

<label for="stipend">Stipend Amount</label>
<input id="stipend" type="radio" name="is-paid" value="Stipend No">
<label for="stipend-amount" class="hidden">Stipend Amount</label>
<input placeholder="" id="stipend-amount" name="stipend-amount" type="text" data-validation="required" data-validation-depends-on="is-paid" data-validation-depends-on-value="Stipend Yes" />

Seems that #stipend-amount is always required, and not only required when #stipend value = Stipend Yes.

Syntax error or does dependent validation not work with radio buttons?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions