cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Clear Textinput default value on select

Hi,

I need a functionality as textinput default text should be removed on select.

I have followed below steps which i got it from the earlier posts. 

 

- Screen:

    - OnVisible: UpdateContext({maintext: "Text You Want To Show"})

- TextInput

    - OnSelect: UpdateContext({maintext: ""})

    - Default: maintext

 

But when the screen opened there's no default text appears in text input.

Can you please help me, where i am getting wrong.

 

Thanks,

Pankaj

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Anonymous,

 

Like @Mike8 suggested, please use the HintText property of the TextInput control to achieve this. You could set the Default property to:

""

Then set the HintText property to:

"Text You Want To Show"

Capture.PNG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Solution Sage
Solution Sage

Hello,

Check again. It should work. Try to navigate from one screen to another. The textinput should show: Text You Want To Show.

Also I would suggest to check the HintText property of the textinput instead of setting the default value. I think that it may help you.

Community Support
Community Support

Hi @Anonymous,

 

Like @Mike8 suggested, please use the HintText property of the TextInput control to achieve this. You could set the Default property to:

""

Then set the HintText property to:

"Text You Want To Show"

Capture.PNG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (4,159)