Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required form fields #165

Closed
hendi opened this issue Jun 26, 2020 · 0 comments · Fixed by #171
Closed

Required form fields #165

hendi opened this issue Jun 26, 2020 · 0 comments · Fixed by #171

Comments

@hendi
Copy link
Collaborator

hendi commented Jun 26, 2020

Given how common required form fields are, https://ihp.digitallyinduced.com/Guide/form.html should have a section on how to denote required fields, i.e. add the required attribute:

{(textField #title) { fieldInput = (\fieldInput -> H.input ! A.required "required") }}

Also it'd be nice to have the common attribute required easily available, without requiring two imports and a lambda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant