eclipsesource / eclipsesource/jsonforms

Inputs should have `name` attributes

Open
#2,142 4 comments 0 reactions 0 assignees View on GitHub
enhancement react vanilla
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

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

The `name` attribute is essential for server first websites that leverage traditional form submission workflows. Consider the following React component and scheme:

```jsx
function BasicForm (props){
return



}
```

```json
{
"title": "Person",
"required": ["name", "surname", "birthday"],
"type": "object",
"properties": {
"name": { "title": "Name", "type": "string" },
"surname": { "title": "Surname", "type": "string" },
"birthday": { "title": "Birthday", "type": "string", "format": "date" }
}
}
```

This renders successfully but `name` attributes are nowhere to be seen

image

```html




Name*





Surname*





Birthday*




```

Without `name` attributes, submitting the form sends nothing.

### Describe the solution you'd like

Include `name` attributes on each input field.

### Describe alternatives you've considered

- Writing my own forms, which is exactly what I don't want to do.
- Manually handling forms on client side, which is a waste of client resources and time.

### Framework

Core

### RendererSet

Vanilla

### Additional context

_No response_

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.