code4romania / code4romania/website-factory

[Forms] Add an "Other" option to the form

Open
#476 1 comment 0 reactions 1 assignee Claimed by @CostinLemnaru View on GitHub
enhancement :rocket: Forms
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

**Is your feature request related to a problem? Please describe.**

`Checkbox` or `Radio` blocks should have an "Other" option on request.

**Describe the solution you'd like**

The block should have a toggle allowing users to activate the "Other" option.
The option should allow the user to add an option with the title "Other," which opens an input field for the user.

The field's name should be i18n-ed and configurable [from the translation files](https://github.com/code4romania/website-factory/tree/main/lang).

It would be helpful if a `minimum/maximum length` of the field configuration would appear when toggled.

**Additional context**

Example of the feature in Google Forms:
![Screenshot 2023-10-24 at 15 28 05](https://github.com/code4romania/website-factory/assets/2820084/55707d55-0b4f-4677-8ca6-6f97e1f17092)

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.