0

What I would like to do is to update particular field with a visualforce button as well as with the respective controller and save the record. Could you please advise how this can be achieved? Could you please add an example code.

In the following converstaion: Update custom field using Trigger

I've tried to update the field via trigger but it turned out to be difficult.

Therefore I strive to find a way to update the field via controller.

Please advise how this can be achieved.

Regards,

Dilyan

  • what is the object name. – Himanshu Nov 18 '15 at 17:19
  • the field name is Lead.Status__c. It is the status of the Lead object. What I am trying to achieve is to set the Lead.Status__c to 'Existing Deal' when I am trying to convert Lead to Account and the Lead is not converted. The Lead is not converted to Account when the company name and the url fields coincide with the company name and the url of the Account. Please advise how this can be achieved in Visualforce via controller? – Dylan D Nov 18 '15 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.