Ask A Question

Notifications

You’re not receiving notifications from this thread.

Select Or Create Field For Tags and Labels without jQuery

Taylor Cooney asked in Javascript

I’m looking to explore a feature for a CRM that allows a user to add tags or labels to a customer record. They might not have the tags or labels in the database and I think it would be more intuitive to have an action like the example interface below where you can say Add New Tag which will submit and have it added to the Tags list.

Image: https://aws1.discourse-cdn.com/standard10/uploads/stimulusjs/original/1X/aaa107ea6a977a89212545d60249805f113ab264.gif

I’ve had create success using jQuery plugins like selectize.js and select2, however I’m trying to move away from jQuery as a crutch. I wonder if that is something a Stimulus controller should controller but I haven’t been able to find any reference to a select or create all-in-one that allows users to add new tags or labels to a customer. Does anyone have any materials I could reference for this?

Reply

I do not know how you do this, but salesforce customization has the ability to add tags and customer records, this can be done by a normal user, without technical skills. You may also have this option

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.