dependencies and required interaction
See original GitHub issueGeneral information
- json-editor version: 2.4.0
(This is an enhancement request)
Expected behavior
Fields whose dependency is not met (and thus are hidden) do not trigger required
during form validation.
Actual behavior
A hidden input will stop a form from submitting because it has no value. I understand why this doesn’t happen right now, because the element is just set to display: none;
. Maybe it would be nice to have a way to set the options
parameter based on whether or not the dependency is met?
Steps to reproduce the behavior
value_x: {
title: 'value_x',
type: 'boolean',
format: 'checkbox',
},
value_y: {
title: 'value_y',
type: 'string',
format: 'date',
options: {
inputAttributes: {
required: true,
},
dependencies: {
value_x: true,
},
},
},
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Aspects, Dependencies and Interactions - Unpaywall
Abstract. The topics on aspects, dependencies and interactions are among the key remaining challenges to be tackled by the Aspect-Oriented.
Read more >Aspects, Dependencies and Interactions - Lirias
Abstract. The topics on aspects, dependencies and interactions are among the key remaining challenges to be tackled by the Aspect-Oriented.
Read more >(PDF) Aspects, Dependencies and Interactions. - ResearchGate
Aspects, Dependencies and Interactions. ; The paper proposes some extensions to the AspectJ [2] language for detecting ; aspects usually can be ...
Read more >User Input dependencies - ChatBot
Dependency Rules The system searches all previously reached User Inputs from all branches. If any of the interaction can't be matched, the bot ......
Read more >Overview of Dependencies and Interactions With Other Cloud ...
To do so, you assets require a specific setup and must be based on a maintenance-enabled item that's full-lifecycle tracked. Also, your assets...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
On the topic of dependencies, it would also be nice to be able to “clear” the value of the dependent field when the dependency is lost. In the above example, when value_x is set to
false
, value_y should be able to be set back to""
hello, I have opened a ticket here:
https://github.com/json-editor/json-editor/issues/1183
issue is still there