cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sajan_Varghese
Level: Powered On

Default Value as Zero

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?

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Default Value as Zero

@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."

View solution in original post

Dual Super User
Dual Super User

Re: Default Value as Zero

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!

View solution in original post

6 REPLIES 6
Super User
Super User

Re: Default Value as Zero

@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."

View solution in original post

Dual Super User
Dual Super User

Re: Default Value as Zero

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!

View solution in original post

dynamicsedge
Level 8

Re: Default Value as Zero

@Sajan_Varghese 

 

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

Dual Super User
Dual Super User

Re: Default Value as Zero

@dynamicsedge 

 

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!
dynamicsedge
Level 8

Re: Default Value as Zero

@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
Level: Powered On

Re: Default Value as Zero

Yes, it worked . 🙂😁

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,783)