cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eugene-CHN
Helper II
Helper II

OnStart Set Variable Issue

Hello, friends,

 

I got customized form based on sharepoint list,

and i would like to set variable in OnStart, it works, for example Set(Test; "Hello")

But is not working if Set(Test; TextInput.Text) 

 

How to fix it?

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Eugene-CHN 

Is there some particular text in the TextInput as the app starts?

If you are deriving a text value in the Textinput control (i.e. its default property) from some place like a datasource or other calculation, then it will most likely not have a value at OnStart.

If you are deriving a value in the Textinput, then consider turning off the "Use non-blocking On-Start rule" in the advanced settings of your app.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

The Formula is ok so can give more details on what is not working?

Do you have errors?

Set(Test; TextInput1.Text) ------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

RandyHayes
Super User
Super User

@Eugene-CHN 

Is there some particular text in the TextInput as the app starts?

If you are deriving a text value in the Textinput control (i.e. its default property) from some place like a datasource or other calculation, then it will most likely not have a value at OnStart.

If you are deriving a value in the Textinput, then consider turning off the "Use non-blocking On-Start rule" in the advanced settings of your app.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,913)