web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Based on an entry in o...
Power Apps
Unanswered

Based on an entry in one form a value of another connected shareointlist column should be shown in an additional form

(0) ShareShare
ReportReport
Posted on by 6

Hi there,
I have an app which is based on a sharepoint list where people can enter all data to apply for a appointment.

Cleo5_2-1689923009970.png

Thereby they have to choose the unit they are working in. When submitting the form (form1) it would add a line in a sharepoint list.

Cleo5_1-1689922909359.png

Another connected sharepoint list contains also the unit and a name of a contact person for questions specifically for people of this unit. The PM support person

Cleo5_0-1689922513297.png

 

Having the form to enter the project facts for the appointment works well. However, when I want to show the name of the PM support in an additional form (the middle little blue box) an error occurs that I compare control with number. This is the code in the field "PMSlead":
If(DataCardValue22 = SelectedState.New,LookUp([@HP_CB_DropdownList],DataCardValue22 = Unit),Blank())

--> DataVardValue22 is the "unit" in the upper form

--> when clicking on the "new" within the formula it gives me this information:

Cleo5_3-1689923259436.png

--> as it only checks if there is something entered in the unit field resulting in a yes or now (I understood this would be 0 or 1)

--> when clicking on the second DataCardValue22 within the formula it gives me the information that this is a control:

Cleo5_4-1689923354292.png

Now I can't compare 0 or 1 with "control", ok, understood, but how do I receive the name from the PMSlead column depending on the unit name selected in the first form. And only if I select a value in the form a name should be shown.

 

What is wrong within the formula?

Categories:
  • narayan225 Profile Picture
    2,547 Moderator on at

    @Cleo5 

     

    What control are you using for DataCardValue22?

     

    If it is a dropdown, you can use the following formula.

    If(DataCardValue22 = SelectedState.New,LookUp([@HP_CB_DropdownList],DataCardValue22.SelectedText.Value = Unit.Value),Blank())

    Hope this helps!

     

    Cheers!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard