How to clear a drop down field after save and revert to placeholder

I’m trying to clear field inputs after save on a form.

All the fields are clearing except the drop down field. I want it to revert to the placeholder I set of “Select”
I tried this but it isnt working
self.input_stuff_form.drop_down_stuff_type.selected_value='Select'
What should it be?

You can do like the below and set the selected_value to None:

self.input_stuff_form.drop_down_stuff_type.selected_value = None

That should work since I just tried it with a simple button that ran that code, but let me know if that doesn’t work for you :slight_smile:

4 Likes

Thanks Duncan, that did the trick!

1 Like