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 / Remove/Delete values
Power Apps
Answered

Remove/Delete values

(0) ShareShare
ReportReport
Posted on by 266

As Power Apps is completely new to me, I'm not really sure how to ask my question, but here it goes.  I've created a very simple app, integrated with a SharePoint list, which includes 4 fields: Name, Status, Return Time, and Comments.  Note- it's a very simple and basic In/Out board.  Everything is working perfectly well.  Staff open the app, select their name and can change their status by selecting 'yes' or 'no' from the status drop down list, add a return time, and comments if they wish.  What I would like to happen is if the status is set to 'out' and when changing it back to 'in' the values/data in Return Time and Comments is deleted, forgoing to have them do it manually.   I realize in order to help, you'll need some names, but I'm not sure what to provide, but will give it a try.  The names of the status control in the app is: DataCardValue6.  The name of the Return Time control is: DataCardValue8 and the name of the Comment control is: DataCardValue7

 

Thanks in advance.  If you need further information, please let me know.

Categories:
I have the same question (0)
  • AsanKani Profile Picture
    710 on at

    Hi, @Mike44 

    here you need to share your coding, not only control name like DataCardValue6,DataCardValue7,DataCardValue8.

    you can share your control coding means, we will try to resolve your problem. and send the snap of your app view to easily understand what do you expect / what is actual problem in your side.

    I hope you understand what am I said. 

  • Mike44 Profile Picture
    266 on at

    I understand what you need, I just don't know where to find it or how to share.  Can you tell me how I find the coding?

     

  • AsanKani Profile Picture
    710 on at

    Edit your PowerApps, Select your control, Like Button, Radio Button, TextInputBox, Label, Gallery etc.
    See below image view the code. You can share like below or send the you code Copy and Paste.

    AsanKani_0-1649564343064.png


    Your PowerApps screen View like below, 

    AsanKani_1-1649564516555.png

    Your all SharePoint list field name with datatype like below

    AsanKani_2-1649564593366.png

    then what do you expected result clearly type and send or draw simple picture / your process idea

  • Mike44 Profile Picture
    266 on at

    Thanks for your patience.  I hope this is all you need.  Let me know if you need more.  

    In Out.PNGreturn time.PNGcomment.PNGsharepoint list.PNG

  • AsanKani Profile Picture
    710 on at

    @Mike44  data is clear, now let me know what is your issue? let you explain clearly

  • Mike44 Profile Picture
    266 on at

    When a user change's their 'Status' to 'In', I would like clear/delete the values in the 'Return Time' and 'Comments' fields.

  • Verified answer
    AsanKani Profile Picture
    710 on at

    It's really simple @Mike44 
    First set Text input default property

    ""

    (null/ empty). then
    Put Status change drop down "on change" property to ResetReturnTime); ResetComment); 

    Note : you need to use data card value.


    Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

  • Mike44 Profile Picture
    266 on at

    I'm lost.  Where do I find the 'Text Input' default property.  Are my other setting correct?

    Mike44_0-1649696170323.png

     

  • AsanKani Profile Picture
    710 on at

    @Mike44  Your Dropdown on change is fine. plz do below like in your data card.

    AsanKani_0-1649697572996.png

     

    I hope my previous point as your issue solution. If issue is resolved make previous post as solution and give Thumbs Up.

  • Mike44 Profile Picture
    266 on at

    Is it applied to the default property of the 'Return Time' and 'Comment' data cards?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard