[luci] value of another field
Jo-Philipp Wich
xm at subsignal.org
Wed Feb 10 13:22:26 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
> how can i get a value of a field in same page in a function?
By calling it's :value() function, example:
opt1 = s:option(Value, ...)
opt2 = s:option(Value, ...)
function opt2:validate(value)
local opt1val = opt1:value(self.section)
...
end
~ JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktypP8ACgkQdputYINPTPNHowCgifa/tAazCZHsqHorbZ2zk2Tl
nJwAn0KKjrYkwS1xr/WExCyxQs5QhqBC
=YxPx
-----END PGP SIGNATURE-----
More information about the luci
mailing list