Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to update the context of datacard value using text input

(0) ShareShare
ReportReport
Posted on by 74

Hi, 

 

I'm building some powerapps request application. Please see the image below for your reference. 

 

daywalker_567_1-1683158362548.png

In this program, I will add TA Number in TextInput and then I will press Add sign. The TA Number that I added will go to Datacardvalue. My goal is to save as much as many TA Number that I will add to Datacardvalue. 

 

Please see the image below. 

 

daywalker_567_2-1683158815092.png

 

Thank you for your 

 

  • daywalker_567 Profile Picture
    74 on at
    Re: How to update the context of datacard value using text input

    Hi @Rusk,

     

    Thank you for the help. 

     

    Appreciated!

     

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at
    Re: How to update the context of datacard value using text input

    Good question!  In the above example, you can add a formula to both save the multiple values in the text box AND clear your collection.  The formula to reset your collection would be:

    ClearCollect(colTANumbers)
  • daywalker_567 Profile Picture
    74 on at
    Re: How to update the context of datacard value using text input

    Hi @Rusk,

     

    I have second query, how do I reset the data card value field once I already submitted the TA number. 

     

    Thank you .

  • daywalker_567 Profile Picture
    74 on at
    Re: How to update the context of datacard value using text input

    Hi @Rusk ,

     

    Thank you for your help.  🙂 

     

    God bless

  • Verified answer
    Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at
    Re: How to update the context of datacard value using text input

    Hi @daywalker_567 

     

    You can use your + icon to gather the text into a collection, then display that collection using the Concat function.  Once your user is done gathering items, you can have a different icon or button to save the values.  Here's an example:

     

    Plus Icon OnSelect formula:

    Collect(colTANumbers,TextInput1.Text)

     

    Display box text:

    Concat(colTANumbers,Value,", ")

     

    Rusk_1-1683160626555.png

     

    Rusk_0-1683160611418.png

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard