Answered
I'm trying to do enable disable textfield based on radio button selection. I have 2 radio buttons.
if radiobutton 1 on
then textfield1 writable
else
textfield1 read only
textfield 2 writeable
end;
Should I put the code on radiobutton 1 or radiobutton 2? Or on the RadioButtonList?
radio button 1 mouseup event
if (this.rawValue == 1) {
vardas_pavarde.access = "readOnly";
vardas_pavarde.ui.oneOfChild.border.fill.color.value = "255,249,203"; // yellow
}
else {
vardas_pavarde.access = "open";
vardas_pavarde.rawValue = null; //field reset
vardas_pavarde.ui.oneOfChild.border.fill.color.value = "255,255,255"; // colorreset
}radio button 2 mouseup event
if (this.rawValue == 2) {
imones_pavadinimas.access = "readOnly";
imones_pavadinimas.ui.oneOfChild.border.fill.color.value = "255,249,203"; // yellow
}
else {
imones_pavadinimas.access = "open";
imones_pavadinimas.rawValue = null; //field reset
imones_pavadinimas.ui.oneOfChild.border.fill.color.value = "255,255,255"; // colorreset
}