Answered
Setting check boxes to be created in app.alert
There is a button. When the user presses the button, an alert with a description will appear. The alert has a checkbox. I want to make this button itself to disappear when the checkbox is checked by user.
Below is the code that doesn't work as expected.
var PINK = this.getField("PINK");
PINK.oMyCheckbox = {cMsg: "Hide this button",
bAfterValue: true
};
var PINKALERT = app.alert({cMsg: "TEST",
cTitle: "TEST",
nIcon: 3,
nType: 0,
oCheckbox: PINK.oMyCheckbox
});
if (PINK.oMyCheckboxf == false){PINK.display = display.hidden;};There are two questions.
- There is no effect of "bAfterValue: true"
- If set to "PINK.oMyCheckboxf == false", the button will not disappear regardless of whether or not it is checked.
- If set to "PINK.oMyCheckboxf == true", the button will disappears regardless of whether or not it is checked.
I tried variously, but I don't know how to write it.
Thankyou for anybody help.
