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 / Clearing a choice sele...
Power Apps
Answered

Clearing a choice selection with a variable in default

(0) ShareShare
ReportReport
Posted on by

Hello Everybody,

 

I am creating a copy and paste feature in my app but I need some variables to reset once navigation occurs.

I created variable RCARec from a previous screen when the copy button was pressed and this stores the value of a choice selection.

When pasting on a different screen, when OnSelect of the paste button is triggered I set a variable RCARecIn with the values of RCRec, see below

 

Set(RCARecIn, RCARec)

 

The RCARecIn value is then entered into the default box of the choice datacard I want to paste the data into.

All this works.

 

Problem is on the next OnSelect button I now need to set the RCARecIn variable to default but I can't seem to compile with the code below.

 

Set(RCARecIn, "")

 

 I think this is because it is a choice column in a SharePoint list.

 

Please suggest code which would set the value of RCARecIn so the choice returns to empty. 

 

Thank you in advance

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @rob4681 

     

    Try this: 

    Set(RCARecIn, Blank())

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard