Dialog dlg;
DialogGroup dGrp;
DialogField dialogField;
dlg = new Dialog("Evil Dialog");
dGrp = dlg.addGroup("A Group");
dialogField = dlg.addFieldValue(extendedTypeStr(NoYesId), NoYes::Yes, "I hereby sell my soul");
if (dlg.run())
{
info(dialogField.value());
}
Since we want their souls we use addFieldValue
and pre-check the box for them.