New answers tagged

0 votes

Visualforce - Rich text substitute style= "" with style="margin-top: 0pt; margin-bottom: 0pt;"

Copy paste rich text value from sandbox to production does not work properly. I believe this is an API Version issue cause i am copying from sandbox to production where versions are different. And ...
  • 445k
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 ...
  • 445k
0 votes
Accepted

How to add an object into another object - ES5

To comply with ES5 and effectively combine the two objects (seems to push one object to another object). We can use this: for (var key in availabilityDetails.search) { if (Object.hasOwnProperty....
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 ...
  • 445k
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
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=&...
  • 445k
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 ...
0 votes

how to call a function of vf page script from vf page controller

What you are asking for is not possible.
  • 50.5k

Top 50 recent answers are included