0

I want to update Account.Name with ( FirstName__C + LastName__C) whenever FirstName__C or LastName__C is changed or new account is created.

Workflow/process builder/trigger will not work as it will work when event is raised and Account.Name is mandatory field. Any suggestion. 

1 Answer 1

0

As Name is required so whenever a record is created you need to fill some text in it.

Now you have few options here:

  1. Use URL hack to prepopulate name with some Test text but you need to make sure to use proper parameter in Lightning experience/Salesforce1.

  2. You can replace the New page with custom VF page and from there hide the Name field and then in controller populate the Name field.

2
  • Thanks Tushar but User don't want to enter any value in Name field. They only want to put value in custom field. We can create new VF page but we have 10 record type so we have to create different VF pages for each record types. Commented Jan 16, 2018 at 10:04
  • @DhanikLalSahni Either you need to create 1 pages or you can use DescribeLayoutResult to create UI dynamically. Commented Jan 16, 2018 at 12:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .