+ Start a Discussion
Chitral ChaddaChitral Chadda 

radio button match: error Unknown property 'AccountStandardController.map1'

now, under contact information 
in the first column  is value of picklist : phone type 1, type 2 , type 3 ( all 3 picklist have values --- home , cell work ,fax)
nd last coloumn is radio button

preferred contact type is text field in which we enter eithr home or wor or fax or cell . (the field is on standard page)
now i want that suppose user entered preferred type of contact as cell than 1st rows radio button should be selected.
like wise if preffered type of contact is work then 2nd rows radio button should be selected.
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" action="{!map1}" /> Preferred
<input type="radio" name="optionsRadios" id="optionsRadios2"  value="option2" action="{!map1}" /> Preferred
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3"  action="{!map1}" /> Preferred


dependin on what preffered contact type (text field ) is home/ work/ cell  (entered by user)

that particular radio button shud be selected.
i tried this but its not working..

public pageReference map1()
{


if(account.Phone_Type_1__c==account.Preferred_Contact_Type__c)
{

radio=true;
}
return null;
if(account.Phone_Type_2__c==account.Preferred_Contact_Type__c)
{
radio=true;

}
return null;
if(account.Phone_Type_3__c==account.Preferred_Contact_Type__c)
{
radio=true;

}
return null;

}
i get error:
 Unknown property 'AccountStandardController.map1'
User-added image
Riyaz MohamedRiyaz Mohamed
Hi,
While solving the custom radio button I encountered similar issue.. 

You might take a look at this link for an idea to solve your particular error - https://success.salesforce.com/answers?id=90630000000CdrVAAS

Good day!!