web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pass values from paren...
Power Apps
Answered

Pass values from parent lookups to child forms

(2) ShareShare
ReportReport
Posted on by 52
Maybe this is a very novice question but i am struggeling to understand how i can manage the following. 
 
Lets say i have a table setup that looks like this:
  • Country
  • State
  • City
 
I have created the following relations between the tables:
  • Country
  • State -> Country
  • City-> State
  • City - Country
 

When I am in a form for states, I would like to add some cities from a subgrid. When I create them, the state is automatically filled, but the country is not. How can I use the lookup field I created in State → Country to automatically fill the country when adding a city?

I hope I have described it correctly.


Kind regards, 
Arjan
Categories:
I have the same question (0)
  • Suggested answer
    SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at
    Hi @Arjan,
     
    You can achieve this by using Business Rules.
     
    You can create a business rule to set the country field based on the state field.
    Set the condition to check if the state field contains data, and then set the country field using the related state record.
    Otherwise you can achieve this by using JavaScript Approach.
     
    Hope this helps.
  • Verified answer
    Arjan Profile Picture
    52 on at
    I ended up with setting up field mappings grabbing the values from the parent entity and copy that to the child entity, business rules cannot be used to solve this.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard