
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.
Steps to Replicate the issue:
1) Create a screen flow.
2) On the screen element, add a text input and mark it as a required field.
3) Add a Lookup component and refer It to any sObject that contains a lookup field Eg: contact.accountId.
4) Debug the flow.
5) Populate a value in the lookup field and click Finish. Ensure that no values are entered in the Required text field
5) Observe that a validation fire and lookup field is wiped out after clicking on the finish button.
The solution is to have the Record ID input set to something In the lookup field. If using auto-outputs, you can set it to the component's own value, like {!myLookup.recordId} i.e (ApiName.recordid).
Note: By default, screen components that require Lightning runtime have no memory. If a user enters a value, navigates to another screen, and returns to the component’s screen, the user-entered value is lost. To enable a flow to remember the value of an attribute, set the attribute. The flow stores the value automatically. If you store values manually, store the attribute’s output value in a variable.
https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screencmp_address.htm&type=5
000391007