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 as Zero
Power Apps
Answered

Default Value as Zero

(2) ShareShare
ReportReport
Posted on by 44

He Everyone,

 

One of my input text filed has default value as 0.

I need default value as blank. I tried to delete 0 from the right hand size and the parent.default formula deleted and the input is not flowing to the respective list column.

 

How can I fix this?

 

 

Capture.PNG
Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Sajan_Varghese 

    Put this code in the Default property of Approver3_DataCard1

    Blank()

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Sajan_Varghese 

     

    The control is getting its value from the Parent.Default, which means from the selected Item.
     
    In case you want to set it blank in case of new form and show the value when the item is updated, then you can update the formula as:
     
    If(Form1.Mode = FormMode.New, Blank(), Parent.Default)
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Sajan_Varghese 

     

    If you try solution from @mdevaney  did it work for you?

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @poweractivate 

     

    If(Form1.Mode = FormMode.New, Blank(), Parent.Default), works for both the cases, i.e. for New form and Edit form. If it is a New form, then will show the value as Blank and if the form is used to edit an existing item, then the saved value will be displayed.
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @yashag2255 

     

    That's a good idea actually, if @Sajan_Varghese is using the form for both new and edit.

     

    If @Sajan_Varghese is only using the form for New and is sure that the FormMode of the Form will never be changed to FormMode.Edit - then @mdevaney 's solution may be much simpler for @Sajan_Varghese to understand and also to implement.

     

    However @yashag2255  we think your solution actually makes more sense if the form may be under the New mode and the Edit mode, so it may be a better solution overall.

  • Sajan_Varghese Profile Picture
    44 on at

    Yes, it worked . 🙂😁

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