# Openstudio measure: dynamically change an argument field

For the sake of the argument, let's say I'm writing a measure to modify one existing chiller, in a model that has two of them:

• Chiller 1 with a COP = 4
• Chiller 2 with a COP = 5

I have two questions:

1. I ask the user is to pick which chiller he wants to modify.
2. Then I ask him to set the COP.

Is there a way to make it so that the default value in the field COP would change automatically when you switch between chiller 1 and 2?

In other terms, if the user picks "Chiller 1"I want to auto-fill the field COP with 4. If he then switches to "Chiller 2" I want it to switch the field COP to 5.

edit retag close merge delete