• Riyaz Mohamed
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies
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
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