3 votes
Accepted

Not able to change the name of a contact from a vf page?

You can't edit the Name field; it is a compound field that uses FirstName, MiddleName (if enabled), Last Name, and Suffix. You need to edit the individual fields, instead. <apex:column headerValue=&...
  • 444k
2 votes
Accepted

Input on Visual force page form with Controller

You just need to read a parameter from the URL: String accountId = ApexPages.currentPage().getParameters().get('id'); Which you then place into the URL: /apex/myPage?id=0010400001234ABEEY To make it ...
  • 444k
2 votes

How to make a button disappear after clicking on it in vf page?

You can use JavaScript for this: <apex:commandButton value="Save" action="{!SaveMethod}" onclick="this.style.display='none'"/> If you want to reenable the ...
  • 444k
2 votes
Accepted

How to make a button disappear after clicking on it in vf page?

Use a rendered condition for apex:commandButton. VF page: <apex:commandButton rendered="{!NOT(hideSave)}" value="Save" action="{!SaveMethod}"/> Controller: ...
  • 806
1 vote
Accepted

Update an object that is indirectly related to another object in a list

DML operations will not update Child records in the records whihc you pass to it, So you need to create another list for Net_Prospect_Score__c object and update this list. Also you need to add another ...

Only top scored, non community-wiki answers of a minimum length are eligible