statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Add autocomplete to forms #529

Open aerni opened 3 years ago

aerni commented 3 years ago

Add autocomplete attributes to the form builder: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

This could be implemented the same way you already do with the input type.

duncanmcclean commented 3 years ago

The 'input type' config option is not special for form blueprints, where as I think this would probably need to be? (unless there's a case for it...)

aerni commented 3 years ago

Yes, autocomplete only makes sense for forms. What's the case for input_type on a regular blueprint? I can't think of one either.

duncanmcclean commented 3 years ago

Yes, autocomplete only makes sense for forms. What's the case for input_type on a regular blueprint? I can't think of one either.

I know I've used it before in the case of a URL, where it will warn the user if it isn't formatted correctly (eg. they type something that's not a URL)