I want to write function that takes the true or false answer of radio button and prints information into an email to send via corona.
radio button:
local checkboxButton = widget.newSwitch
{
label = “qTwo”,
left = 555,
top = 100,
style = “checkbox”,
id = “questionTwo”,
onPress = onSwitchPress
}
scene.view:insert(checkboxButton)
down in the email section(email works):
subject = function()
if checkboxButton.switch.isOn == true
then print(“qTwo here”)
end
end