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 / Update Lookup Field in...
Power Apps
Answered

Update Lookup Field in lookup list without leaving the main form

(0) ShareShare
ReportReport
Posted on by 1,362

Hello,
I am struggling with this and not able to find a solution.
Hoping someone can help.
I have a Lookup (DataCardValue34) field lookup up the value from my SharePoint list called "Environments" 
I will be updating existing data from a SharePoint list


The Field properties are:
Items = Choices([@'CST Intake'].lkupEnvironment)
Allow Multiple Selectioni is OFF
Allow searching is ON
DefaultSelectedItems = Parent.Default


The DataCard properties are:
Update = DataCardValue34.Selected
Default = ThisItem.lkupEnvironment


I have connected to the form (CSTEnvironmentsForm1) that holds the lookup value in the Environment_DataCard1 with the field name DataCardValue110.

The lookup acts like a combo box and what I would like to do is type in a value on the main form lookup and if the value isnt found then open the CSTEnvironmentsForm1, add the new value there, which would then refresh both when I save the record.
Is this possible and is there a link one could share because I have not found anything like this.
Thank you!

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @golfnutt82,

    Here is what I get from your description:

    1). You have two forms, the main form is to update the LookUp field lkupEnvironment connecting to 'CST Intake'

    2). Search lookup value in the DataCardValue34 firstly, if not exists, open the CSTEnvironmentsForm1, add a new item for the DataCardValue110 connecting to Environments

     

    If the above is correct and it is exactly what happened in your scenario, you could check the following steps:

    1). Add a open button, set its OnSelect proerty to:

    If(
     IsBlank(DataCardValue34.Selected)&&
     IsBlank(LookUp(Choices([@'CSTIntake'].lkupEnvironment),Value=DataCardValue34.SearchText)),
     Navigate(CSTEnvironmentsForm1);NewForm(CSTEnvironmentsForm1)
     )

    2). Then you need to fill in the CSTEnvironmentsForm1 with a new item providing for lkupEnvironment field

    3). Set the OnSuccess property of the CSTEnvironmentsForm1to:

    Refresh('CST Intake')

     

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard