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

Automatically add required attribute to @availity/form inputs #245

Open
nylon22 opened this issue Aug 21, 2019 · 3 comments
Open

Automatically add required attribute to @availity/form inputs #245

nylon22 opened this issue Aug 21, 2019 · 3 comments
Assignees

Comments

@nylon22
Copy link
Member

nylon22 commented Aug 21, 2019

Automatically add required attribute to @availity/form, @availity/select, and @availity/date inputs when required from yup or isRequired from @availity/yup returns true.

See #243 (comment)

@GoPro16
Copy link
Contributor

GoPro16 commented Aug 21, 2019

As of today [email protected] that is possible.

https://codesandbox.io/s/reactstrap-formik-with-validate-25i8j

Note that it works for a mix of both

@TheSharpieOne
Copy link
Collaborator

Similarly, all HTML5 validation attributes: required, pattern, minlength, maxlength.

@nylon22 nylon22 self-assigned this Sep 30, 2019
@nylon22
Copy link
Member Author

nylon22 commented Oct 10, 2019

There does not appear to be a clean way to do this atm. Will continue to monitor formik issues. I did find this: jaredpalmer/formik#1728

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

No branches or pull requests

3 participants