Closed DeniseO closed 1 week ago
Hi @DeniseO !
I tried it in my environment and was able to poll!
⚠️ However, when I created the lookup column, it created a column with an internal name for the column that was different from the internal name written in the README.
Therefore, I changed some parts of the code to match the column definitions in my environment. The code after the change is as follows.
As for the reason for not being able to update, I think there are two possible reasons:
If the item cannot be edited, it cannot be updated. Please check again if the user who will update the item has editing permission.
There is a place in the JSON where it is stated which columns with internal names are to be updated. Please check to see if the internal names of the columns listed here match the actual internal names of the columns.
You can check the internal name of a column from the URL of the column edit page. The internal name of the column is the part of the URL after 'Field='."
I found a demo video of this sample! I am sending it for reference.
Building no-code poll application with list formatting - YouTube
Thanks a lot @tecchan1107 for your quick and detailed response. ❤️ I deleted the lists, started over following your instructions and now it is working!!
I did notice the internal name difference and tried to match the column name with the spacing there, but maybe I was still doing something wrong.
Now, I do get the Results view of the Poll Responses list to work. I went throughout the video instructions, applying the JSON code provided and the filters as indicated: Selection, not equal to empty, and Response Iteration, greater or equal to 0.. But I don't get to see the bar or the grouped results, just the names that match the filtering criteria.
I tried to make some changes on the code, but still not working. Thanks a lot for your help! Denise
I did notice the internal name difference and tried to match the column name with the spacing there, but maybe I was still doing something wrong. Now, I do get the Results view of the Poll Responses list to work.
I'm glad it's fixed and working well!
But I don't get to see the bar or the grouped results, just the names that match the filtering criteria.
I tried it in my environment and was able to get the bar to appear!
Maybe the grouping settings are incorrect and the bar is not showing; could you please check again to see if you are grouping by SelectionwithColor
column?🙇♂️
(The README didn't say which columns to group by, so I'll add that later.)
@tecchan1107 I can't thank you enough! It works perfectly now. I was not grouping correctly. That was it!
Thanks for your patience and time! Denise
Hi!
I was trying to make this sample work: https://github.com/pnp/List-Formatting/tree/master/view-samples/team-poll.
Everything seems to be ok, except that when selecting an option, the record is not is not being updated. I can see the poll options, but when clicking is not saving any value, not updating any fields. I wonder if there is anything left to do on the specific columns to be updated: (selection, selectionwithcolor, responseiteration).
Thanks a lot for your comments!