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 / Issue with Clearing Mu...
Power Apps
Unanswered

Issue with Clearing Multiple Lines of Text from SharePoint List Column

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone,

 

I am facing an issue with my PowerApp and hope someone can help me out.

 

In my PowerApp, I have the ability to create new text input fields for a column from a SharePoint list. These fields are then saved in the SharePoint list in one column and are separated by semicolons. I use the new Modern Form with the old Text Input fields. 

 

Buzzler_1-1716457401982.png

 

However, I am unsure if I have correctly implemented the loading of the fields when opening the form with the right record. Here is my current code:

 

OnVisible for my EditScreen:

Set(varProblemStatementsTable, Split(SelectedUseCaseEditandView.'Problem Statement', ";"));
Set(varSolutionsTable, Split(SelectedUseCaseEditandView.Solution, ";"));
Set(varBenefitsGoalsTable, Split(SelectedUseCaseEditandView.'Benefits / Goals', ";"));

Set(varNumberOfFields_ProblemStatement, CountRows(Filter(varProblemStatementsTable, !IsBlank(Value))));
Set(varNumberOfFields_Solution, CountRows(Filter(varSolutionsTable, !IsBlank(Value))));
Set(varNumberOfFields_BenefitsGoals, CountRows(Filter(varBenefitsGoalsTable, !IsBlank(Value))));

 

 

 

Code for Loading the Text Fields (Example for the second Text Input field):

DataCardValue66_16.Default = If(varNumberOfFields_ProblemStatement >= 2, Last(FirstN(varProblemStatementsTable, 2)).Value, "")

 

 

 

OnSelect Event for the Minus Button (Example for the first Minus Button):

 

 

If(
varNumberOfFields_ProblemStatement > 1,
Switch(
varNumberOfFields_ProblemStatement,
2, Reset(DataCardValue66_16),
3, Reset(DataCardValue66_17),
4, Reset(DataCardValue66_18)
);
Set(varNumberOfFields_ProblemStatement, varNumberOfFields_ProblemStatement - 1)
)

Visible of the Minus Button:

Visible = FormModeVariable = FormMode.Edit && varNumberOfFields_ProblemStatement >= 2

 

My goal is that when clicking a Minus button, the corresponding text field is cleared and remains editable. Currently, the text content is immediately reloaded when I also do it manually clear the field and then load again if I click on the add button.

 

Does anyone have an idea how I can ensure that the text field is truly cleared and stays empty until a new value is entered?

 

Thank you in advance!

 

Categories:
  • RobGas Profile Picture
    75 on at

    So the issue is when you click for example the last minus button it doesn't clear the TestProblem4? 

  • Buzzler Profile Picture
    6 on at

    Yes exactly, if I would click on the add button again, the content would be loaded inside again.
    The OnSelect for the Add Button: If(varNumberOfFields_ProblemStatement < 4,
    Set(varNumberOfFields_ProblemStatement, varNumberOfFields_ProblemStatement + 1)
    )

    Visible: 
    FormModeVariable = FormMode.Edit && varNumberOfFields_ProblemStatement = 3

  • RobGas Profile Picture
    75 on at

    Is there any reason why you're using a switch statement for the minus button? 

     

    Couldn't you just put on select for the minus (Next to the TestProblem4):
    Reset(DataCardValue66_18);

    Set(varNumberOfFields_ProblemStatement, varNumberOfFields_ProblemStatement - 1)

  • Buzzler Profile Picture
    6 on at

    Yes, if I click on the top minus sign, then the last Text Input Field should be reset and deleted, and if I click on the top one again the same thing should happen with the second one and in the third process the same thing should happen with the second Text Field deleted and the minus button disappears

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard