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 / Default value for numb...
Power Apps
Unanswered

Default value for number field will always be = 1

(0) ShareShare
ReportReport
Posted on by 3,514

I have a numeric field and i want to set its default value =1

so i define the following:-

 

dr.png

 

but currently when i edit any item even if its value != 1.. the RiskInternlStage will always be equal to 1.. any advice?

Categories:
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    HI @johnjohn123 ,

    Do you want it to equal 1 always or only if the field RIskInternalStage is blank (which is what it is set to now)?

  • johnjohn123 Profile Picture
    3,514 on at

    @WarrenBelzi want to set it to 1 if the value is null,, otherwise to show the actual value (2, 3 or 4 ,etc..).. currently i will always get 1 even if i enter 2 and save the value >> when i edit the item again i will get 1!!

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

    @johnjohn123 

    How are you submitting your form?

    What is the Default property on DataCardValue16?

    Is RiskInternalStage a numeric column or a text column in your datasource?

  • johnjohn123 Profile Picture
    3,514 on at

    @RandyHayes  DataCardValue16 is a numeric field inside sharepoint

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

    @johnjohn123 

    That's 1 out of 3.  The remaining:

    - How are you submitting your form?

    - What is the Default property on DataCardValue16?

  • johnjohn123 Profile Picture
    3,514 on at

    @RandyHayes 

     

    - How are you submitting your form?

    using the build in save button and save the change to sharepoint..

     

    -- What is the Default property on DataCardValue16?

    i am setting its default value .. currently the default value will be 1

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

    @johnjohn123 

    I need to know formulas!  I am assuming then from the first part, this is a SharePoint integration and you are letting the Save button fire the OnSave of the integration and in there you have a SubmitForm.

     

    For the DataCardValue16 what is the formula on the Default property?

  • johnjohn123 Profile Picture
    3,514 on at

    @RandyHayesi already provided the formula inside the question inside the screen shot.

    Thanks

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

    @johnjohn123 

    Thanks, but that is the formula on the Default property of the DataCard, not of DataCardValue16.  It may not be of any issue, but I need to know in order to verify.

  • johnjohn123 Profile Picture
    3,514 on at

    @RandyHayes  the default DataCardValue16 is set to the parent as follow:-

     

    Parent.Default

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard