Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Eureka form

I am using Eureka form in my iOS app. I want to clear / reload form by pressing the button. How it should be done?

I tried this code with no luck

for row in self!.form.allRows {
    row.reload()
    row.updateCell()
}

self!.tableView.reloadData()

I know that there is way to provide default values for all fields but I don't want to specify all fields values - just want to find universal way to refresh / clean form.

like image 605
moonvader Avatar asked Oct 27 '25 14:10

moonvader


1 Answers

Here is the function I use to clear my form

   for row in form.allRows {
        row.baseValue = nil
    }
    tableView.reloadData()
like image 119
C. Moulinet Avatar answered Oct 29 '25 06:10

C. Moulinet