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 / 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:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,616 Super User 2025 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard