Scott Humphrey
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
Hey, any idea how I can get the copy to clipboard Attribute by finsweet working for each collection item?
I'm targeting a text block that's rendering a link from a few locations depending on the resource. I have the copy to clipboard attributes set in the right places but it's just getting the link from the first collection item on all items. I think I need to loop through all the .resource-card elements and apply the script to each one but Ii'm not sure how to do that with out starting from scratch on the JS and inputting manually. Preview: https://preview.webflow.com/preview/climate-connect?utm_medium=preview_link&utm_source=designer&utm_content=climate-connect&preview=ff26b2ec03f3b291c962d891d80674bf&pageId=6411e5b190e69fafff5e0fa1&workflow=preview Live: https://climate-connect.webflow.io/dev/resources -The text link value is hidden, the class is .social-share_link-url -The click trigger is in the social share card Attribute: https://finsweet.com/attributes/copy-to-clipboard#documentation Appreciate any guidance. Thank you.
I'm targeting a text block that's rendering a link from a few locations depending on the resource. I have the copy to clipboard attributes set in the right places but it's just getting the link from the first collection item on all items. I think I need to loop through all the .resource-card elements and apply the script to each one but Ii'm not sure how to do that with out starting from scratch on the JS and inputting manually. Preview: https://preview.webflow.com/preview/climate-connect?utm_medium=preview_link&utm_source=designer&utm_content=climate-connect&preview=ff26b2ec03f3b291c962d891d80674bf&pageId=6411e5b190e69fafff5e0fa1&workflow=preview Live: https://climate-connect.webflow.io/dev/resources -The text link value is hidden, the class is .social-share_link-url -The click trigger is in the social share card Attribute: https://finsweet.com/attributes/copy-to-clipboard#documentation Appreciate any guidance. Thank you.
17 replies