How to add checkBox in Dialog and get value?

Dialog dialog = new Dialog(“New dialog with checkBox”);
NoYesId checkValue = NoYes::No;
DialogField dialogField = dialog.addFieldValue(extendedTypeStr(NoYesId), checkValue, “Check it”);
if (
checkValue = dialogField.value();
info(strfmt(“Value %1” , checkValue));

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s