web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / custom form with reset...
Power Apps
Unanswered

custom form with reset text field does not save value to sharepoint list

(0) ShareShare
ReportReport
Posted on by 4

I have a customized sharepoint list form with fields that have values cleared based on values in a dropdown multi-select.

To keep it simple, I will focus on one field, txtNewAddress.


txtNewAddress gets its value from a variable "_NewAddress" that is populated on form load from a datacard.

txtNewAddress has a variable also tied to the reset attribute, resetFlag.

The field txtNewAddress needs to be cleared if the aforementioned dropdown does not contain "Forward".

I have this working using the following code on change:

Set(_NewAddress,Blank());
Set(resetFlag, true);
Set(resetFlag, false)

However, when I save the record, the blank value is not saved. While I have logic on the form prevents it from appearing in the field, I can see the value in the sharepoint list. This is how I know it did not update.

If I edit the field post reset the field value will save.
If I edit the field post reset, but reset it again it will not save.
So, I think it has something to do with it being reset (maybe reset fields do not save?).

If it matters, I am utilizing buttons as functions for code that is reused often. The above code is in a button that is triggered with a Select() when the ddl changes because that same code is also fired on launch (as this code will eventually also show/hide these fields).

Any help is appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-sheyu-msft Profile Picture
    on at
    Re: custom form with reset text field does not save value to sharepoint list

    Hi @joeh,

    Can you share a bit more about your issue ?

    Can you show me the column type of ‘txtNewAddress?

    How is "_NewAddress" variable populated from a datacard ?

    By your saying “if the combo box does not contain Forward, can you show me the formula about this

     

    I made a test . there is no issue on my side .

    Column1 is choice type.2.PNG

    Set Onchange property of datacardvalue2 to :

    If(DataCardValue2.Selected.Value<>"Forward",Set(NewAddress,Blank());Set(resetFlag,true),Set(NewAddress,DataCardValue2.Selected.Value))

    Set Default property of datacardvalue3(txtNewAddress) to :

    NewAddress

    Set reset property of datacardvalue3(txtNewAddress) to :

    resetFlag

     

    Please check if the txtNewAddress field is assigned a value in your formula.

     

    Regards,

    Eason 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard