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 / Set selected value (Sh...
Power Apps
Unanswered

Set selected value (SharePiont list lookup type) in AddForm

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm a beginner. Last Friday I started creating my first powerApp.

 

It is easy inventory, that contain two Sharepoint list (Item inventory and activity logs). I started with default template from tutorial (BrowseScreen,EditScreen and DetailScreen).
On DetailScreen I display item detail from item inventory (Default settings) and below this detail I display gallery, that contains this item's activity logs. On Header this gallery I have icon for adding new activity log, that redirect to LogEditScreen. LogEditScreen contain Header and Edit form.

 

Here is begin of my problem. I would like to automaticly set item name instead of default generated dropdown menu, that allows selection of all saved item names. I searched everywhere and tried everything, but I can't resolve it.


My Idea is, that I transmit item name from DetailScreen to LogEditScreen (Ideally as hidden label) and user fills rest of form. So I make sure the item is selected correctly and user can't add activity log for other item.

 

Sharepoint Lists definition
item inventory: item name (string),Handed over from (date),Borrower(String),...
activity logs: activity name (string), note (string), item name (lookup item name from item inventory)

 

I will be extremely grateful for any advice or reference to a tutorial that would help me.


Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @Hotkomar 

    1. Set the OnSelect property of gallery in BrowseScreen

     

    Set(VarItemName, ThisItem.'item name') 

     

    2. The Item name field in activity logs is a combo box in default, set the DefaultSelectedItems property:

     

    LookUp(Choices('activity logs'.'item name'), Value=VarItemName)

     

    3. Then the combo box will automatically select that item name, if you don't want user change it, just set the combo box mode to View, it will show as a label.

    Sik

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard