cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 Team
Community Support Team

Re: Clear Textinput default value on select

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
Mike8
Level 10

Re: Clear Textinput default value on select

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 Team
Community Support Team

Re: Clear Textinput default value on select

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
thirdimage

Power Apps Super User Class of 2020

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 (Last 30 Days)
Users online (6,010)