cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jean_9681
Helper II
Helper II

How to set field value based on another field value

Hi,

This should be straight forward but I am not able to figure out, Can someone please help me with a simple formula/fx to copy a field value to another filed in the same form.

2021-07-26_16h07_58.png

 

Report Title is a lookup column and i need this value to be filled in to the default title column
When the user fills in the form they will be filling out only the Report Title and the default title filed  is not visible ( It is set to false) in the form.

 

Title = DataCardValue1
Report Title = DataCardValue2

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

@Jean_9681 ,

Lookup fields contain two values (Value and Id), both from the second list being looked up. I normally suggest to people that unless you want to use them directly in SharePoint, you throw them away and simply use Text as they serve no purpose in Power Apps. 

However the Update of the Data Card would be something like this

{
   Value:DataCard1.Text,
   Id:
   LookUp(
      OtherListName,
      FieldName=DataCard1.Text
   ).ID
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User III
Super User III

@Jean_9681 ,

Lookup fields contain two values (Value and Id), both from the second list being looked up. I normally suggest to people that unless you want to use them directly in SharePoint, you throw them away and simply use Text as they serve no purpose in Power Apps. 

However the Update of the Data Card would be something like this

{
   Value:DataCard1.Text,
   Id:
   LookUp(
      OtherListName,
      FieldName=DataCard1.Text
   ).ID
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

WarrenBelz
Super User III
Super User III

Hi @Jean_9681 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you @WarrenBelz  it worked

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,184)