I am building a dynamic approval panel where a user inputs text for a comment box called "popOptionalComments." When I try to show the comments that the user inputted, in my Gallery, I am met with This formula uses scope, which is not presently supported for evaluation. Does anyone know how to fix this issue?
When I put popOptionalComments.text, it'll show the same user input for all my records, which is not what I want...that's why I'm using ThisItem.Comments to get it to show the input for that record only.
Could you let me know what source you're using? And more importantly, could you show me a possible record of said source? Meaning, what columns do you have?
Also, what is the DataSource and Items property of your Form?
The approach with ThisItem.Comments was absolutely correct. So the issue needs to be somewhere else.
Thank you for the response. My Gallery to show the display for my Approvals/Rejects is called "Gallery 2." My edit form is called "EditForm1." Notice that they are separate entities on the left-hand Tree View column.
Here are the DataSource and Item property of my Form. (varRecord is to save all of the items of the submission of the form)
Also, here is a look of my columns in my SharePoint list, which receive the patch from my code perfectly fine.
Sorry for the late response. I was quite busy these days.
Since your gallery is showing the record of the form you're displaying, you basically have two elements showing the same thing.
Is there a reason you have it this way? You could simply hide/unhide the comments/approval buttons in your EditForm as well.
Either way, this does look correct. Where do you set varRecord? Perhaps the error is somewhere with this variable.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.