I am using ALCD 7.1. I have created a yes/no radio button pair and I would like to change the value of the button based on result of message I prompt the user with.
Scenario:
User changes radio button from default value of "Yes" to "No". Upon clicking the "No" option, a message box pops up and asks the user to confirm selection. If user clicks "OK", radio button value should be set to 0. If the user clicks "Cancel", radio button value should be set to 1.
The code seems to work, but the value of the radio button does not change on the form. I suspect the value has been changed, but it isn't rendered on the form.
Any suggestions on how to make this scenario occur based on the user's action? I have been searching the forums for a while now and haven't found anything as of yet.
The code is listed below:
var msgValue = app.alert({
cMsg: "Selecting NO will omit this section's data from being submitted. Proceed?",
nIcon: 1,
nType: 1,
cTitle: "Confirm Action"});
if (msgValue == 0) {
GCVYesNo.rawValue = 1;
}
else {
GCVYesNo.rawValue = 0;
}
Thanks in advance!!!