cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Value of Edit Lookup Field from Sharepoint

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
Highlighted
Community Support
Community Support

Re: Value of Edit Lookup Field from Sharepoint

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

Highlighted
Frequent Visitor

Re: Value of Edit Lookup Field from Sharepoint

Hi,

 

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

Highlighted
Frequent Visitor

Re: Value of Edit Lookup Field from Sharepoint

Thanks for the reply it worked perfectly

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,770)