Skip to content
Advertisement

How to add multiple textfield in kivymd

i am making a form screen in which a user can input data and upload it to database. I want them to be able to add multiple textfields on a button press if they still want to add something. it should be scrollable since the amount of textfields is based on how many the user really wants. i have this code right here but it doesn’t really do what i had in mind.

JavaScript

Here is my kv file:

JavaScript

Thank you

Advertisement

Answer

You can modify the Tab to customize the layout you need to hold all necessary fields as follows,

JavaScript

Alternatively you could’ve inherited Tab from MDBoxLayout,

JavaScript

Then the kvlang would be,

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement