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 / Reset Datacard value t...
Power Apps
Unanswered

Reset Datacard value to blank before submitting a form

(0) ShareShare
ReportReport
Posted on by 7

Dear, 

 

I have a SharePoint list with barcodes. People can click on a certain barcode and then give me some information. But once they give it back these questions need to be reset to blank. So once a new person comes he can fill in the questions. But it always needs to be tagged to the barcode. 

Right now i am struggling with how to do the following function. 

 

If(DataCardValue16.Selected.Value = "Beschikbaar"; Reset(DataCardValue11); SubmitForm(EditForm1))

 

So what i am trying to do here is. Button -> OnSelect > Function above. If a dropdown menu is selected on "Beschikbaar" then reset an other datacardvalue to blank otherwise submit the editform. But i keep getting errors that i can't use the reset function. 

How can i make this function work?

With ki

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at

    @Mat_Out 

     

    The reason is that the control inside a form or gallery cannot be reset from outside the form directly.

    Inorder to reset

     

    If(DataCardValue16.Selected.Value = "Beschikbaar";Set(varreset,true),
    Set(varreset,false); SubmitForm(EditForm1))
    
    you need to set variable value to true in first step and false in next step
    
    Use this variable in datacardvalue11 reset property

     

     

    Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Mat_Out Profile Picture
    7 on at

    Thnx for the fast response. This way it changes back to the previous information. I want the Datacard value blank so there is no data at all. Is that also possible?

  • developerAJ Profile Picture
    4,763 on at

    @Mat_Out 

     

    Currently its reset to default value unfortunately you cannot do empty directly only way is to set default value

    if you want to reset to empty use Variable after resetvariable

    If(DataCardValue16.Selected.Value = "Beschikbaar";Set(varreset,true),
    Set(varreset,false),Set(varMakeEmpty,true); SubmitForm(EditForm1))

     

    Default property of Datacardvalue11

     

    if(varMakeEmpty;"";Whatever the value you have now on this property)

     

    Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Mat_Out Profile Picture
    7 on at

    Thnx for the quick respons again i appreciate it. This seems to work for text fiels. But how can i use this function:

    If(varMakeEmpty;"";Whatever the value you have now on this property)


    For DropDown menu's. I want to set drop down menu's also to the default state. But there was no value on the default property of dropdown menu's. How should the formule look like?

    Mat

     

  • developerAJ Profile Picture
    4,763 on at

    if no value on default this should do

    If(DataCardValue16.Selected.Value = "Beschikbaar";Set(varreset,true),
    Set(varreset,false),Set(varMakeEmpty,true); SubmitForm(EditForm1))

    no need to do anything

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard