Hi there,
I have an app which is based on a sharepoint list where people can enter all data to apply for a appointment.
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.
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
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:
--> 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:
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?

Report
All responses (
Answers (