Relative Content

Tag Archive for javascripthtmlruby-on-railsrubyslim

Ruby on rails – I want a behavior, when validity is true, but validity is always true, as Required: false,

My issue is precisely this. I am using simple forms and one of my sections (one_liner), is not behaving as wanted. As it can be seen from the picture, the label should not hover, if nothing is inputted into the form, I achieve this in “full name” and “company name” by setting Required: True, because they ARE required to submit the form. However, the one_liner is not required and must not be required and as such it will always be valid. I added a minlength to try and invalidate it, when an input less than 1 character is inputted, but that only works when its in focus.
Image 1
Image 2