This project include a Lightning Web Component that will display picklist values in a Flow based on a record's record type. It utilizes
To assist with testing the picklistValuesByRecordType LWC, a sample flow is included. The sample flow is configured to display the Industry field from the Account object. To effecitvely test, be sure that you have at least two record types for Account, and that each record type has different values for Industry.
While working on this project, I utilized the following resources:
- https://developer.salesforce.com/docs/component-library/bundle/lightning-flow-support/documentation
- https://salesforce.stackexchange.com/questions/282026/how-to-use-flowattributechangeevent-to-affect-component-visibility-in-flow
- https://help.salesforce.com/articleView?id=flow_considerations_design_conditional_visibility.htm&type=0
- https://developer.salesforce.com/docs/component-library/documentation/en/lwc/use_build_for_flow_screens
- https://www.jitendrazaa.com/blog/salesforce/point-and-click/use-lightning-web-components-in-flow/