How to get all the values in form

I have a form and currently trying to access the field values using "luci.http.formvalue('field_name')" for each field.
If the fields are nXn, is there any other way to get the entire form data instead of getting each field data separately? Can "luci.http.formvaluetable()" be used and how to use it?

Any help would be appreciated.
Thanks

Use formvalue() without arguments to access the full parameter table.

local key, val
for key, val in pairs(luci.http.formvalue()) do
    -- do something with key and val
end
1 Like

Thanks @jow, it works

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.