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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set a Number and a Dat...
Power Apps
Unanswered

Set a Number and a Datetime field to Blank() inside the Update property insdie a form is not working

(0) ShareShare
ReportReport
Posted on by 3,506

We have a Form and inside the form we have 2 fields; Number field + DateTime field which connect to a SharePoint list, now inside the 2 data-cards i provided these 2 formulas to either submit the selected value or submit Blank()

 

 

 

If(Value(NumberOfInstallments.Selected.Value) >= 4,DataCardValue70.SelectedDate,Blank())

If(Value(NumberOfInstallments.Selected.Value) >= 4,Value(DataCardValue69.Text),Blank())

 

 

 

now even if this condition is false (Value(NumberOfInstallments.Selected.Value) >= 4) the value inside SharePoint will not be null... any advice? seems the Update property does not like the Blank() value? to submit the form i am using the buil-in function SubmitForm()..

 

Thanks

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @johnjohn123 

     

    It seems the issue might be related to the Update property of the data cards in the form. When you use Blank() in the Update property, it may not correctly update the SharePoint list with a blank value.

    Instead of using Blank() , you can use an empty string ""  to set the field value to empty. This should work with the Update property and correctly update the SharePoint list with blank values when the condition is false.

    Modify the formulas in the Update property of the data cards as follows:

     

    For the DateTime field:

     

    If(Value(NumberOfInstallments.Selected.Value) >= 4, DataCardValue70.SelectedDate, "")

     

    For the Number field:

     

    If(Value(NumberOfInstallments.Selected.Value) >= 4, Value(DataCardValue69.Text), "")

     

    i hope this helps 🙂

  • johnjohn123 Profile Picture
    3,506 on at

    @Sundeep_Malik thanks for the update, i tried your formula but still the value will never be set to "" and the value will stay the same

  • Sundeep_Malik Profile Picture
    6,484 on at

    @johnjohn123 

     

    Ok before I directly gave you an expression. This time I will try it on my end. 

    Before trying I want to ask this Number of Installment value is coming from where. Is it another drop-down in the same form or is it coming from somewhere else? 

     

  • johnjohn123 Profile Picture
    3,506 on at

    @Sundeep_Malik it is a combo-box representing a SharePoint choice field and it is inside the same form and get submitted with the form.. thanks

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @johnjohn123,

    To update a Number field and a Date field with null value, please modift your formula as below:

    If(Value(NumberOfInstallments.Selected.Value) >= 4,DataCardValue70.SelectedDate,DateValue(""))
    
    If(Value(NumberOfInstallments.Selected.Value) >= 4,Value(DataCardValue69.Text),Value(""))
  • johnjohn123 Profile Picture
    3,506 on at

    @v-qiaqi-msft i tried your formulas but still they will not set the value to null inside sharepoint,

  • johnjohn123 Profile Picture
    3,506 on at

    @v-qiaqi-msft @Sundeep_Malik 

     

    Also I also have this feature turned off and i do not want to turn it on at this stage becuase we might face extra error

     

    johnjohn123_0-1689942261732.png

     

  • bangnoy Profile Picture
    2 on at

    If you used Sharepoint List as your database table, maybe you can check it first.

    at column setting, choose Edit > Default Value change to None.

    bangnoy_0-1720171100151.png

     

    And set your Datepicker DefaultDate property in PowerApps to Blank()

     

    Hope this answer your question.

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard