fm = st.form("フォーム名")

with fm:
# フォーム内にウィジェットを配置
submitted = st.form_submit_button("送信ボタンのラベル")

if submitted:
# 処理

フォームにはレイアウトに関する関数同様,オブジェクト表記が使用できる.