As the title says, I’m trying to do something really simple which is when ‘Make’ has no value selected then ‘Model’ should be disabled as the car models should be loaded based on the car make selected. I followed the docs to set the ‘read-only’ property but it actually shows/hides the ‘Model’ but does not change read-only or disabled.
@Rock_Lee You don’t need to write scripts . there is an option called “depends on” for the field model . just write (eval:doc.make!= null && doc.make!=“”; ) .
this will hide the field unless make is selected.
Actually I think this is a design but. The misconception is that a field that has no value and read only is not displayed at all.
While in reality, also the information that NO value is set in a read only field may be very important.
I guess a github issue should be raised.
@Rock_Lee What’s the type of field ‘model’ ? If it’s a data field. Then when you put read_only attribute over there it will be in hidden if it has no value in it. If there is any default value in model then it will be shown there in read_only state.
Literally that’s too much effort for such a simple feature, and I also need to reload the Model list when Make is changed. E.g, when BMW is selected then populate Model with all the models of BMW. @bahaou