简体   繁体   中英

How to pre-populate Form fields with initial values in Kinetise?

In Kinetise mobile app generator I want to init form fields (like Text Input) with some dynamic (from web service) values. How can I achieve this?

I found the answer myself so I share it if someone have similar problem:

You need to put Form widget into List widget.

  1. Add List widget and connect it to your API exposing those initial values
  2. Reduce items count to 1, disable SHOW MORE
  3. Add Form widget inside that single-item List widget.
  4. edit TextInput of that Form widget and set its initial value being read from proper node of API you pointed to in step 1.

Initial values of other Form fields should be handled accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM