Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperlink ClickCount not working #866

Open
Creddahornis opened this issue Oct 25, 2024 · 4 comments
Open

Hyperlink ClickCount not working #866

Creddahornis opened this issue Oct 25, 2024 · 4 comments
Labels
🐞 Bug Issue with one of the samples

Comments

@Creddahornis
Copy link

Sample (which sample are you having trouble with)

https://github.com/pnp/List-Formatting/blob/master/column-samples/hyperlink-click-count

What Should Happen

The ClickCount column should increase when the link in Lists is clicked

What Actually Happens

The click count behaviour shown in the GIF doesn't occur. I've tested this on completely new lists, and tried setting the ClickCount value to null, 1 and 0 - same thing. Same thing on other browsers too

The formatting is otherwise working (e.g. padding displays fine, link works, etc.). I'm pretty new to json formatting so if I'm doing something wrong here, please let me know. Steps to repro are:

  • Create a new SharePoint List
  • Add hyperlink column 'Link' and number column 'ClickCount - do not modify settings
  • Created some dummy list items with the link https://www.google.com
  • Click the link and check if the number in ClickCount appears/increases

Thanks :)

@Creddahornis Creddahornis added the 🐞 Bug Issue with one of the samples label Oct 25, 2024
@tecchan1107
Copy link
Collaborator

Hi @Creddahornis ! Thanks for reporting this Issue!

I was able to reproduce the phenomenon in my environment. I suspect that the update of Microsoft Lists has probably made it not work anymore.

I created an issue in the sp-dev-docs repository to confirm with Microsoft if this is a bug.
SharePoint/sp-dev-docs#9988

Sorry, I don't know how to solve this bug at the moment...

@Creddahornis
Copy link
Author

Hi @tecchan1107,

Not a problem at all - you testing it in a document library is actually really helpful, because it means I can use it for a different project I'm working on where I want to track user engagement with files 🥳

Incidentally I found a Reddit post with the same issue after I found your sample JSON:
https://www.reddit.com/r/sharepoint/comments/122bxjn/setvalue_json_no_longer_working/

Thanks so much for your work on the JSON repo, and for responding so quickly

@tecchan1107
Copy link
Collaborator

I am writing to inform you that I have received the following comment on this issue.

SharePoint/sp-dev-docs#9988 (comment)

@Creddahornis
Copy link
Author

I saw, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Issue with one of the samples
Projects
None yet
Development

No branches or pull requests

2 participants