Skip to main content
Community site session details

Community site session details

Session Id : AlQiVHXQ9MhIhJJfb2I8a2
Power Apps - Building Power Apps
Answered

Text input fields not updating on edit

Like (0) ShareShare
ReportReport
Posted on 6 Mar 2023 19:46:09 by 53

Hi all,

 

I'm working on a canvas app attached to a SharePoint list as the data source.  I have a gallery on the 1st screen to select an existing client or create a new client form.  The form has quite a few columns and most are working as I'd like, but there's one group that I am having issues with and hope someone here has an idea to help because this is a big roadblock right now.

 

For these forms, there are a number of columns/fields where we have a "Standard" for how the client's cases are handled by our team and we really want to be the default.  So I added a checkbox to those fields - it does not send information back to SPO, it just controls the visibility of the text input.  And that works great in creating a new form.  However, if we go to edit it and (for example) recheck the "Standard" box and delete the text, the text remains and the checkbox does not stay checked.  Every other field seems to work fine on editing, except these ones.  I have searched for answers for awhile and not finding anything that solves the issue.

 

On the Default for the Checkbox, I have If(Parent.Default="Standard", true, false)

Update property for the datacard is txtSummaryofServicesFreeform.Text

Categories:
  • JeanL Profile Picture
    53 on 09 Mar 2023 at 19:09:47
    Re: Text input fields not updating on edit

    That's what I was thinking and it worked like a charm!  Thanks!

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on 07 Mar 2023 at 21:15:12
    Re: Text input fields not updating on edit

    For that, you can use the OnCheck property to patch the value "Standard" back to your data source.  Something like

    Patch(colTest,DataTable1.Selected,{Masking:"Standard"})
  • JeanL Profile Picture
    53 on 07 Mar 2023 at 21:02:21
    Re: Text input fields not updating on edit

    We have a partial fix, for sure!  If I edit the text, it does save now.  Still working on getting the text to return to default if the checkbox is selected, but I will take ever step forward I can find.  

  • Verified answer
    Rusk Profile Picture
    1,369 Super User 2024 Season 1 on 07 Mar 2023 at 01:59:07
    Re: Text input fields not updating on edit

    I see.  The SharePoint column is "Standard" by default.  But when you uncheck the box, nothing is updating SharePoint with the new value.  I made the following example:

    Rusk_0-1678153924580.png

    Hopefully this sort of captures your data source, seen in the table.  As the "Masking" column values are ALREADY set to "Standard" by default, we need to change that value when a change is made. 

     

    A few options would be the OnUnCheck property of the checkbox, or the OnChange property of your text input:

    Rusk_1-1678154108261.png

    Rusk_3-1678154138033.png

    As seen above, when I uncheck the box, the value is cleared out.  I don't know if you want to clear it out, this is just an example 😛

    Patch(colTest,DataTable1.Selected,{Masking:""})

     

    Or, I can instead use my OnChange to save the new value:

    Rusk_4-1678154307316.png

    Patch(colTest,DataTable1.Selected,{Masking:TextInput1.Text})

     

    Let me know if this wasn't what you're looking for 

     

     

  • JeanL Profile Picture
    53 on 06 Mar 2023 at 20:30:32
    Re: Text input fields not updating on edit

    I will try my best.  

    For example we have a field for how much of an account number will be masked in communications.  We want the default to be that it's all but the last 4 digits.  So the Standard box is checked and the text input is not visible.  The default for the column in SharePoint is "Standard".  If the client wanted a different way of masking the account number we would unselect the checkbox and add the new instructions.

    JeanL_0-1678134101003.png  JeanL_1-1678134271103.png

    If I create a new client form, the data I save from this field works in both the ViewMode and in SPO.  However, if I go to edit the form and change one of those fields - either way to uncheck or to recheck - the form retains the original information.  It only affects these columns as far as I can tell, every other field (multi choice columns, single choice, text) all work fine.

    Happy to provide any more information if it gets me to where I need to be.  This is all still pretty new to me and sometimes I'm not sure I'm communicating in the right language when looking for help.

     

     

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on 06 Mar 2023 at 20:16:17
    Re: Text input fields not updating on edit

    I'm having a hard time understanding what you're describing. could you share a screenshot of how this is set up?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete