Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

OnSelect of Checkbox save Form data

(0) ShareShare
ReportReport
Posted on by

Hello Community,

 

I have an app with a form for submitting data in a SharePoint List. When form is submitted, this is also getting cleared (resetform).

I added a checkbox to some of the fields and when this is checked I want the text that is written in the datacardvalue to not get cleared when form is submitted.

 

Would appreciate any help on this!

Thank you in advance for your support!

  • FilipC2 Profile Picture
    on at
    Re: OnSelect of Checkbox save Form data

    @RandyHayes 

    I need when checkbox is checked to store the information, or I think it makes more sense to say to 'block' the datacard so it won't get reset when form is being submitted.

     

    This is the form:

    FilipC2_0-1665643777047.png

    As you can see I have 5 datacards with checkboxes.

    Submit button is storing all datacard's info in a collection displayed in a gallery and it is resetting the form:

    FilipC2_1-1665644021936.png

    As mentioned above if one of those checkboxes or even all 5 are checked somehow to block those datacard's (checked) and reset only the ones without check's and without checkboxes. This is for helping the users to not have to rewrite those fields again for submitting another line with same info for those fields.

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: OnSelect of Checkbox save Form data

    @FilipC2 

    The formula looks good.

    What is it exactly that you are seeing?  That if the Checkbox is checked that the information in the textinput is being recorded? Or, that the checkbox is unchecked and it does not record what is in the textinput?

  • FilipC2 Profile Picture
    on at
    Re: OnSelect of Checkbox save Form data

    Hi @RandyHayes,

     

    Thank you for your reply!

    I have tried your method, but the text inside the datacardvalue is still being reseted. Can you please advise ?

    FilipC2_0-1665559598206.png

    FilipC2_1-1665559683199.png

     

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: OnSelect of Checkbox save Form data

    @FilipC2 

    This is all handled in your Update property of your datacard.

     

    For example, if you have a checkbox for a field that is a text input.

    You would change the Update property to:

    If(CheckBoxName.Value,
     Self.Default,
     textInputControl.Text
    )

    If the Checkbox is checked, then the input is ignored and the original value is written.  If not, then the text input is written.

     

    I hope this is helpful for you.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1