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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / automatically prefix w...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard