dkharrat / NexusDialog

Library that allows you to easily and quickly create forms in Android with little code
Apache License 2.0
183 stars 52 forks source link

How can I set default values in Edit Text Controller #57

Closed assad62 closed 7 years ago

assad62 commented 7 years ago

Hi,

I would like to set a default text using the Edit Text Controller. Is that possible?

dkharrat commented 7 years ago

Yes, that is possible. The text shown in the form fields will reflect whatever values are stored in the FormModel. To set default text for a particular field, just set the value in the model during initialization.