function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rung41Rung41 

How to SHOW Billing address as required

I know you can set up validation rules to make the billing address required but is there any way to add the red line or some other indicator to show the billing address is required before the record can be save?
Ricky MartinRicky Martin
Hi,
Goto the page layout and double click the "billing address" field and check the required ckeck box.

If you resolve this issue please mark as resolved.
Rung41Rung41
Unfortunately that is not an option, as the required checkbox is greyed out. :(
Ricky MartinRicky Martin
You will have to do this through a validation rule - you can't make the field required on the page layout.

The rule could look like this:

OR(
ISBLANK( BillingCity ),
ISBLANK( BillingCountry ),
ISBLANK( BillingState ),
ISBLANK( BillingStreet ),
ISBLANK( BillingPostalCode))

You will also have to make sure that every address field is populated on the lead object because it will throw an error on convert. It may be worth adding more criteria to the rule, such as it has to be a customer account, or a partner account, etc.
Rung41Rung41
I understand that...but I am trying to visually show that the billing address is required with the red line or some other graphical indicator.
Ricky MartinRicky Martin
You can achieve this only by creating custom billing filed insetad of that standared billing field.
Rung41Rung41
Bummer. Thanks for your help though!
dev_sfdc1dev_sfdc1
Hi Rung,
If you are using visualforce page you can set attribute like below in your code:

<apex:inputText value="{!Account.BillingCity}" required="true" />

Thank You