Posts

Showing posts with the label Address

Salesforce Fact #889 | Validation on address input parts in screen flow

Image
We can set the Required option to TRUE for the Address type input in screen flow. But that would make all the address components to be required. Suppose, we want to keep a validation such that when the state is selected the user should also provide the city in the input. For this, we can make use of the validate input option. Attached are the screenshots.

Salesforce Fact #837 | Address copy in screen flow

Image
In most of the forms we fill in, there is an option to copy the current address details to permanent address on selecting a checkbox. Why not implement the same in screen flow? Thanks to reactive components and a bit of formula logic. Attached are the screenshots.

Salesforce Fact #606 | getters in Address class

Image
We have a couple of getter methods in Address class. So, while fetching the address field values in SOQL, it is not needed to select each address part field. We can make use of these getters to get the data. Reference:  https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_system_Address.htm#apex_system_Address_getCity Attached are the screenshots.