Clear button set value to default value

If I hit the clear button in a select field. The value of this field is set to null instead of the default value. How can this be done?

Thanks in advance for your help.

Hey Thomas! I don’t think there’s a built-in way to do this, but you can make this happen with an event handler.

On your select component, if you add an event handler, set the event to “Clear”, and have it run script:

select1.setValue(“your default value”)

then it should work as expected!

Let me know if you have any questions getting this set up.