Textfield's value become empty after "out of scope in ScrollList"

Hi there!

I have a registration page with multiple text fields. My problem happens when i scroll pass some of the text fields at the top, the values become empty automatically. Would like to ask for advise from the staff/experienced users on this issue. Thanks! 

Screen shot as below:

Screenshot1: Image of registration page w/o user input

Screenshot2: After user enter the values

Screenshot3: Scrolling up to see the “empty” values of the textfield that went out of the scroll list.

Regards,

Vincent

Sorry typo, the scrolllist is a tableview. Thanks for any help that is possible!

That’s basically how the tableview works - when rows scroll off the list, they are destroyed, and created again when you scroll back. This is to facilitate very long lists where you wouldn’t want to put the whole list in memory at once.

You would normally have another list, separate from the displayed list, that holds the actual data, so you can re-create the fields with the right values in the onRowRender() method. Alternatively, use a scrollview instead, as your list is short enough that you don’t need the destroy-create mechanic.

Okay thanks so much!

Sorry typo, the scrolllist is a tableview. Thanks for any help that is possible!

That’s basically how the tableview works - when rows scroll off the list, they are destroyed, and created again when you scroll back. This is to facilitate very long lists where you wouldn’t want to put the whole list in memory at once.

You would normally have another list, separate from the displayed list, that holds the actual data, so you can re-create the fields with the right values in the onRowRender() method. Alternatively, use a scrollview instead, as your list is short enough that you don’t need the destroy-create mechanic.

Okay thanks so much!