cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ACC
Frequent Visitor

Value of Edit Lookup Field from Sharepoint

Hi,  I have a Edit form based on a Sharepoint list.  I have a datacard "DataCard1" based on a lookup field in SharePoint.  The data is displayed in the datacard with a Edit Loopup control.  The field work perfectly,  I can see and select the different selections from SharePoint. 


I want to write an if statement OnChange based on the data in the Edit Lookup Field.  How do I get this value?  I have tried the "SharePointDataField.Value". 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi ACC,

 

To get the value of the Lookup field on the EditForm, on the EditForm, with the Lookup dropdown control being selected, on the right hand pane under Advanced tab, you will know the actual name for the dropdown control.

3.PNG

 

Then in your code, you could use the value of the Lookup field likes DataCardValue11.Selected.Value.


Please try it on your side. Hope this could be a reference for you.


Please feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yamao-msft
Community Support
Community Support

Hi ACC,

 

To get the value of the Lookup field on the EditForm, on the EditForm, with the Lookup dropdown control being selected, on the right hand pane under Advanced tab, you will know the actual name for the dropdown control.

3.PNG

 

Then in your code, you could use the value of the Lookup field likes DataCardValue11.Selected.Value.


Please try it on your side. Hope this could be a reference for you.


Please feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

ACC
Frequent Visitor

Hi,

 

I will get back to this shortly and let you know if this works.  Thanks for the response.

ACC
Frequent Visitor

Thanks for the reply it worked perfectly

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,034)