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 / OnSelect of Checkbox s...
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!

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @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.

  • FilipC2 Profile Picture
    on at

    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,299 Super User 2024 Season 1 on at

    @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

    @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.

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard