froot Posted February 11, 2021 Share Posted February 11, 2021 I need a field that behaves somewhat like the native image tags field. What I mean is you can predefine values in the field settings, and then, when editing a page with that field, you can select those predefined values but also enter custom values. Is that something that exists already or should I go ahead and try to create a custom field type? Link to comment Share on other sites More sharing options...
Robin S Posted February 11, 2021 Share Posted February 11, 2021 You can hook the render of a normal text inputfield and use a <datalist> element. Code example here: 1 Link to comment Share on other sites More sharing options...
Macrura Posted February 12, 2021 Share Posted February 12, 2021 Awesomplete? https://processwire.com/modules/text-input-awesomplete/ 2 Link to comment Share on other sites More sharing options...
froot Posted February 12, 2021 Author Share Posted February 12, 2021 thanks @Macrura It's a good start, but still not ideal. Like I said, technically pretty much exactly like the image-tags functionality when you check User selects from list of predefined tags + can input their own So it's possible in theory, I just need it to work for an only-text-field. Link to comment Share on other sites More sharing options...
Macrura Posted February 14, 2021 Share Posted February 14, 2021 this one still works great for me: but appears to have been removed from the modules directory. I'm using it on current sites. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now