S
S
ssssergey2016-03-27 00:17:07
Flask
ssssergey, 2016-03-27 00:17:07

How in wtf froms Flask to change type to "tel" or "number" in input field?

It is necessary that in the phone, when you click on the field, a numeric keypad pops up, without letters. To do this, you need to do this. But how to change the type if the field was generated using wtf and displayed in the template using jinja?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-03-27
@ssssergey

Declare field as IntegerField(widget=NumberInput())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question