you would need to have a second action. For example if you have Apple, Banana, Orange and the user selects Banana and a field is displayed (visible) but when the select Orange the field that displayed for Banana is now hidden.
You would need something like"
if(this.rawValue == "Banana"){
field1.presence = "visible"
}
else{
field1.presence = "hidden"
}
This could be a mess if you have 30 fields in the drop down and each would have its own hidden field. Another way to do this is to use one field and dynamically change the field value for example:
if(this.rawValue == "Banana"){
field1.presence = "visible"
field1.rawValue = "I love Banana"
}
else
if(this.rawValue == "Orange"){
field1.presence = "visible"
field1.rawValue = "Oranges are good for you"
}
An even cleaner way to do this is with a case statement.