Ask A Question

Notifications

You’re not receiving notifications from this thread.

Values from dynamic form inputs for use as headings/populate other inputs

Tim Dowling asked in Javascript

I have a dynamic form im using to create 'sections' within a checklist with one field of 'title' - this also dynamically creates new tabs. I then want to use that input to re name the title of the tab and tab panel. I'm using data-targets and a stimulus controller to do this and it works beautifully, if I only create one section, but any more than one section and it doesn't rename anything. Is there something I can use to pass a unique identifier with the dynamic inputs to use elsewhere?

Reply
Join the discussion
Create an account Log in

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

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

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