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 / automatically prefix w...
Power Apps
Answered

automatically prefix what the user enters with boilerplate text ‘I need help with.."

(1) ShareShare
ReportReport
Posted on by 166

Hi everyone

I would like to automatically prefix what the user enters with boilerplate text ‘I need help with' within a text box. I can put it on the default property on the text box but than how do I prevent users to delete this text? Or what is the best way to achieve this?

 

 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @ezi79 

     

    Starting point:

     

    OnVisible Screen1

     

     

    Set(myVar,"I Need Help With")

     

     

     

     

    Default TextInput1

     

     

    myVar

     

     

     

    OnChange TextInput1

     

     

    If(StartsWith(TextInput1.Text,"I Need Help With"),Set(myVar,TextInput1.Text),Set(myVar,"I Need Help With" & TextInput1.Text));Reset(TextInput1)

     

     

     

    But this only works "OnChange" that is - only if the text is typed and then the focus is placed outside on the textinput after - not when each letter is typed in real time.

  • ezi79 Profile Picture
    166 on at

    @poweractivate 

    Thank you for the formula Ill test and get back to you 

  • ezi79 Profile Picture
    166 on at

    @poweractivate 

    Thank you for the formula but  when I type the full sentence next to "I need help with" and save the item when I go back and edit the same item,  only wording I see is "I need help with" ,It does not save the rest of the text ,any ideas?

    Thank you  

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    Because you need to change the Default property if you are using this in a form. You could check like this in DataCardValue Default

     

    If(!IsBlank(Parent.Default),Parent.Default,"I Need Help With")

     So you can try something along the lines of this see if it helps.

  • ezi79 Profile Picture
    166 on at

    @poweractivate 

    Thank you this works , this text filed is required filed and I am checking all the required fields on Final submit button. Since there is already text "I need help with" within DataCardValue15 how do I check if they completed the sentence on final submit?

    Since this one has got text "I need help with " how do I check if they complete the sentence before they click final submit?

    I got the following formula but it doesn't seem to work I can still final submit 

    IsBlank(DataCardValue15.Text) && Purpose_DataCard1.Visible=true && EndsWith("I need help with","with"), Notify("Details - Purpose of request can not be blank!",NotificationType.Error),

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard