cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft Employee

Re: Trouble with default in textbox

Have you tried

TextInput.Deafult = vvv

Screen.OnVisible=UpdateContext({vvv:0})

Note that there're no quotes around zero, as suggested before.

?

webdevguy
Level: Powered On

Re: Trouble with default in textbox


@dinusc wrote:

Have you tried

TextInput.Deafult = vvv

Screen.OnVisible=UpdateContext({vvv:0})

Note that there're no quotes around zero, as suggested before.

?


Yes.... Here's my setup....

 

1.jpgInventory_App_-_Saved__Unpublished__-_PowerApps.jpg

Highlighted
CMee
Level: Powered On

Re: Trouble with default in textbox

For a control in a form to get back to the default value the form needs to be reset using ResetForm.

 

See if the following works:

TextInput.Default = 0

 

Then on any control where you are navigating away from that screen add:

 

;ResetForm(EditScreen1)

including the semicolon.

 

It looks like you are using the template that is automatically generated when you select a data source, so you might see that ResetForm is already there on the X icon.

View solution in original post

webdevguy
Level: Powered On

Re: Trouble with default in textbox

ResetForm(EditForm1);

 

Wow. So simple. haha Thanks!

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 424 members 6,667 guests
Please welcome our newest community members: