Pre load drop down value

I’ve tried various methods but cant seem to get it right.

I have a form where I edit machine specs and have two drop downs that I want to pre-load a value into, that value will be the current option for that machine like location. Currently it uses the last used value and if the person doesn’t notice it when the confirm any changes they also change that value. I want to pull the value from the database based on the machine selected. I can preload the other options that use a text box but cant figure out the drop downs.


Add a custom property with a binding that yields the current option. uni-directionally bind the selectedValue property to the custom property. When the window opens, the dropdown will be preset when the first binding loads, but the user will still be able to change the selection. You can use that custom property in a comparison with selectedValue to highlight the field, too.

1 Like

Thankyou Phil, That worked a treat.