Auto Populate Fields on selection of Customer Name
Hi, if I summerize, you have a list of correspondance between custom names and field codes and another list with field codes as column names.
I just tried and here is the result
If it is what you need, in your form you need to add the following code in the "Visible" property of each field with a code:
LookUp(AppleBlackBerry,Code=Self.DisplayName).Title=First(DataCardValue12.SelectedItems).Value
In my example my correspondance list is AppleBlackBery and I lookup inside the column code and verify if the return value for Customer Name (in my example column Title) is equal to the Customer Name filled in the app.
It only works if a field code is assigned to only one Customer Name.
If not, you need to add another formula:
!IsBlank(LookUp(Filter(AppleBlackBerry,Code=Self.DisplayName),Title=First(DataCardValue12.SelectedItems).Value))