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

Set value for dynamic controls in PowerApps Gallery

(3) ShareShare
ReportReport
Posted on by 119
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,847 Super User 2025 Season 2 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,058 Super User 2025 Season 2 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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard