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 value for dynamic ...
Power Apps
Unanswered

Set value for dynamic controls in PowerApps Gallery

(3) ShareShare
ReportReport
Posted on by 123
Hi Folks,
 
Greetings!
 
I'm working on one scenario where, I have developed Dynamic controls in PowerApps gallery (Created CDS table where I have kept column name and Data Types for control).
 
I'm displaying controls in PowerApps gallery which created dynamic control based on datatype.
 
In the same I have also implemented the people control using combo box control in gallery, which is loading items from office 365 users.
 
When user selected any user from people picker on the OnChange property I'm calculating other Property like (Title, Email and JobTitle).
 
I want to set those calculated Title, Email, JobTitle values in the same gallery controls which is type of Text Input.
 
 
 
 
 
Can someone help me on this, how can I set all dynamic textinput values in gallery, which is available in collection, I can not set those property on default property of textinput because there i have written code to load existing item from CDS.
 
Is there any way to set those dynamic textinput property, once people picker value get change.
 
Thanks in advance!
 
 
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,866 Moderator on at
    Can you enlarge the images and explain how you enter new records?
     
    You can use the default property of the text input if you can determine if you are in an entry mode or an edit mode.
     
    If(varNewMode, varDefaultValue, Parent.Default)
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    @sachinsoni441 Hi there,
    Your if statement looks weired.
     
    When the code evaluate IsBlank, you will alway get the the same( you only loaded the first one).
    Here is my thought:
    1.  Consider use rowid in your first lookup as condition or combine it with other fields if you'd like, check if the value is empty or not. collect and updateif could be almost the same.
    2.  The combox onchange property, two things you may consider:
    • Upsert the record in your collection, use patch ( lookup first, if not found insert).
    • Use reset , reset those text input controls.
    in this way, you either find the record in the collection, or upsert in the collection.
    Hope that give you some leads.
     

    Enjoy Power Platform and have a great day 🚀 |  My LinkedIn

    If the answer helps, please consider 👍, Thanks.

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,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard