Using Lua, I want to enable the corresponding value's checkbox if the current_utran_bands table contains the element in possible_utran_bands, but I do not know the correct way to enable the checkbox. This one is unusual because it is not a Flag but a MultiValue, so I don't think umtsbands.enabled = 1
is right.
umtsbands = m:field(MultiValue, "umtsbands", "3G Bands")
umtsbands.delimiter = "|"
for e,v in pairs(possible_utran_bands) do
umtsbands:value(v, "3G B" .. string.match(v, "-(.*)"))
if table.contains(current_utran_bands, v) then
umtsbands.enabled = 1
end
end