if i haven't made any mistake anywhere... something like this:
if (RADIOBUTTON.rawValue == "mother")
{
TEXTFIELD.rawvalue = "";
TEXTFIELD.access= "readOnly";
TEXTFIELD2.rawvalue = "";
TEXTFIELD2.access = "readOnly";
}
else
{
TEXTFIELD.access= "open";
TEXTFIELD2.access= "open";
}
if you want to set other fields as soon as you select an option from a drop-down list, you can change the script to
if (xfa.event.newText == "mother")
{
and so on...