You need to sign in to do that
Don't have an account?
Chris Sanchez 5
pass account.name to controller
Hello - In the below image Account.Name populates to my vf page just fine when the id is entered into the URL. The controller from the other image below uses the fields in the vf page to do an insert to a custom object called customerFeedback. The input text fields insert just fine but how can I rework my controller to pass the value of Account.Name to objcfb.Account__c. The account name is a required field for customerFeedback records. Please help.
In cunstroctor use:
Account a = [SELECT Id, Name FROM Account WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
acct = a.Name;
In VF page:
<apex:inputText value="{!acct}" /> // By Replacing <apex:inputText value="{!Account.Name}" />