cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
T_A_M
Helper III
Helper III

Editing and saving default text in a text box

I'm working on an app for my company, and they have asked if a multi-line text input control in one of the forms can have default text in it. Obviously, I can set the default property of the control to contain this text, but the text also has to be editable and the edits need to be saved back to the Sharepoint list I'm using as a data source.

 

Right now, the user navigates to the form containing this text box from a gallery. If they edit the default text in this text box, then save the form and come back later, their edits still need to be there.

 

I'm sure there's a way to do this, but I'm not sure how. Any help would be appreciated. Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Actually I just figured it out. I set the default property of my text control to this:

 

If(IsBlank(Parent.Default),"Default Text",Parent.Default)

View solution in original post

3 REPLIES 3
Nogueira1306
Super User
Super User

Assuming that they save the form batck to your datasource, you can use: ThisItem.MultiLineText

 

Right?

I'm actually using a rich text editor control. The default property of the data card is ThisItem.ColumnName. The update property of the data card is RichTextEditor1.HtmlText.

 

The default property of my rich text editor control is set to "Default Text."

 

If I navigate to my edit form, I see "Default Text" in the rich text editor. If I then make changes and submit the form, the changes show up in my Sharepoint list. However, the next time I navigate to the edit form from my main gallery, the changes I've made are not showing up in the rich text editor. All it shows is "Default Text."

Actually I just figured it out. I set the default property of my text control to this:

 

If(IsBlank(Parent.Default),"Default Text",Parent.Default)

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,401)