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 / How do I setup my Powe...
Power Apps
Answered

How do I setup my PowerApps form's comments field correctly?

(1) ShareShare
ReportReport
Posted on by 441

The comments field is at the bottom and I've added a text input on top of it. What should I enter into the settings or what code should I use to make sure that the text/comments a user enters is saved to each record when someone clicks on the record in the SharePoint list and also so that the comments are displayed in the approval notification in my workflow to the approver?Power Apps Form.jpg

Categories:
I have the same question (0)
  • MatthewInwards Profile Picture
    138 on at

    Hi @MN003 ,

     

    Your best approach will be something along the lines of submitting the form first and then submitting the text field to that record.

     

    The code on your submit button will then look something like this:

    SubmitForm([FORM_NAME_HERE]);
    Patch(
     [DATA_SOURCE_NAME_HERE],
     [FORM_NAME_HERE].LastSubmit,
     {
     [COLUMN_NAME_HERE]: [TEXT_INPUT_NAME_HERE].Text
     }
    )
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @MN003 

    Is there any reason that you would not just have your comments as part of the form?  Then it will submit with each record.

  • MN003 Profile Picture
    441 on at

    Hi @MatthewInwards ,

     

    Thank you so much for replying, this is what I'm seeing so far with the code: (Any suggestions?)

    MN003_0-1620323935727.png

     

  • MN003 Profile Picture
    441 on at

    @RandyHayes  I think I did try that approach but I was unsuccessful or maybe I did something incorrectly when the form submitted and no text was showing in the record during my test. Sorry, I'm still trying to learn the the best approaches for this case.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @MN003 

    Yes, so you would simply need to add the Comments field to your form in the Edit fields of the form.

    There really isn't anything else you need to do.

  • MatthewInwards Profile Picture
    138 on at

    Remove the [] from the code. I only put those there to hold the place while trying to show you the code

  • MN003 Profile Picture
    441 on at

    Gotcha, I removed those and was able to publish the form with the code. I still seem to get a blank comments box  below. The comments also don't appear in a test email I set up or in the approval notification. 😞

     

    MN003_0-1620744684826.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @MN003 

    So to be clear...does your list have a column called Comments in it?

    Have you tried to add that to your form?

  • MN003 Profile Picture
    441 on at

    @RandyHayes  Sure, so my SP list has a field I created called CPComments, but not a specific field named Comments. I can try to recreate the field again but I've had no luck previously.

     

    MN003_0-1620750699495.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @MN003 

    So have you simply checked on the CPComments field in the field chooser to add it to your form??

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard