this is my form: ``` class SearchView : View() { ...
# tornadofx
r
this is my form:
Copy code
class SearchView : View() {
    override val root = form {
        val model = ViewModel()
        val moviename = model.bind { SimpleStringProperty()}
        val actorname = model.bind { SimpleStringProperty() }
        val year = model.bind{ SimpleIntegerProperty() }
        fieldset("search") {
            field("movie") { textfield(moviename).enableWhen(actorname.value.isEmpty()) }
            field("actor") { textfield(actorname) }
            field("year") { textfield(year) }
        }
    }
}