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

Thanks!

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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