How do I hide fields based on option selected in dropdown
I have a standard rails form with 2 fields:
- Metric type (number, percent, boolean)
- 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?