Notifications
Announcements
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?
@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.
@poweractivate
Thank you for the formula Ill test and get back to you
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
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.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268