decaporg / decaporg/decap-cms

Option to Enable input field only if a checkbox is checked

Open
#1,267 8 comments 15 reactions 0 assignees View on GitHub
area: extensions/widgets area: ui/editor/control-pane kind: feature pinned
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**- Do you want to request a *feature* or report a *bug*?**
Feature

**- What is the expected behavior?**
I will start with an example so that this is better understood

**whitelist:
status: false
type:
start-date:
end-date:**

In the code above, I want the user to only fill in the type and date fields if they change the status to true, So what i am looking for is a way to set a checkbox widget that controls input fields and makes them available when clicked on.

Another example would be a typical 'Others' Input box that becomes available when the user checks the 'others' checkbox.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.