New Discussion

Notifications

You’re not receiving notifications from this thread.

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

0
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?

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.