This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Make one form field depend on another?

I'm new to the framework, I've made a decent amount of progress with a new application, using the DataEditor sample app as a base.

I'm looking for a way to make a form input field grey-out unless a checkbox next to it is checked.

One solution I've thought of is to create a custom Binder that would handle the two fields involved-- is this the best way? It seems there should be a solution using the ValueModels of the fields involved directly.

Also, I haven't seen an example of a form field "greying-out" yet- is this possible? I've seen that they can be set read only, but you don't see the difference until you try to enter data. I'd like the field to change visually as well.