The following example is about description, but this happens with any conditional attribute (title, minimum, etc).
Given a form that asks for two fields is_full_time (yes/no) and hours (number). If yes is selected, then it shows a description warning about the maximum hours.
Problem
The following example is about
description
, but this happens with any conditional attribute (title, minimum, etc).Given a form that asks for two fields
is_full_time
(yes/no) andhours
(number). If yes is selected, then it shows a description warning about the maximum hours.The JSON Schema is the following:
Steps to reproduce:
For this scenario, a workaround could be to undo the value by set
description: ""
in theelse
statement, like this:But this ain't possible for every attribute. For example, if you set
const: 10
, there's no way to "undo" it. Same for any other type of validation.