Noam Agosti


50 Experience
0 Lessons Completed
0 Questions Solved


I have a standard rails form with 2 fields:

  1. Metric type (number, percent, boolean)
  2. current metric value

If the metric type is boolean, I want to hide the input for metric value

Is there a really easy way to do this with stimulusjs?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.