How to check whether a html form has a specific key in Flask?

Solution
search_type = request.form.get('searchType', None)