Streamlit forms issues on submission

Hello please i have a form in streamlit that has both selectboxes, textboxes and textarea…how do i clear all the textboxes and text areas and make selectbox to go back to index 0 on form submit…

Please i need to submit this job it is urgent…please help

Could you please share some example code?
It will then be easier to guide the next step

From the docs:

Function signature

st.form(key, clear_on_submit=False)

Parameters

clear_on_submit (bool)
If True, all widgets inside the form will be reset to their default values after the user presses the Submit button. Defaults to False. (Note that Custom Components are unaffected by this flag, and will not be reset to their defaults on form submission.)