I have something like this:
Class person {
string name
string status
boolean working
boolean vacation
}
static constraints = {
name()
status(inList: ["Active","Inactive"])
}
What I need is to show the working and vacation fields in the create and edit views, only if Active is selected in status. I searched and read alot but can't find a way, maybe I'm missing something since I'm new to grails. Any help is appreciated. Thank you