Adding conditional logic to forms
- Dominant language
- JavaScript
- Stars
- 484
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
Branching can be done when defining your parsers. Should be a 1 liner. Perhaps we'll use the term "requiredIf" or "inScopeIf". Approach is collect a lot of data on forms in the wild and find the smallest change we can make to support most/all of them.
```
nameParser
extends abstractIdParser
description What is your name?
specialtyCell
enum Frontend Backend
specialtyParser
extends abstractEnumMeasureParser
cells commandWord specialtyCell
description What is your specialty?
frontendParser
extends abstractUrlMeasureParser
description What is your favorite JS frontend?
requiredIf specialty = Frontend
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.