web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Default text input as ...
Power Apps
Answered

Default text input as text when format is number

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a slide with a text input, drop down and button. text input is for a year input.
What I would like is to have a default text as "Year" in the textinput and that text clear on select and only allow user to enter number. 
So when the button is selected if anything besides numbers is there it errors.
Is that possible to have "Year" in text input with format number and clear it on select?

Thanks

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    The work around would be to insert a Label besides the Textbox that contains the Number (Year).

    That Label will rather hold the "Year" text.

    Or

    In the HintText Property of the TextBox type "Year"

    Year.JPG

     

    ------------

    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.

     

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @CrashWave ,

    Based on the needs that you mentioned, I think the HintText property of the Text Input Box could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

    2.JPG

    Set the  HintText property of the Text Input Box to following:

    "Year"

    If you want to force user entering  number value within the Text Input, I think the Format property of the Text Input Box could achieve your needs, please set the Format property of this Text Input Box to following:

    TextFormat.Number

    Please check the following GIF screenshot for more details:

    Test.gif

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard