breck7 / breck7/scroll

Adding conditional logic to forms

Open
#134 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.