Patrick Corsetti's Avatar

Patrick Corsetti

@corsettidev.bsky.social

🌐 Webflow Technical Lead & Premium Partner πŸ“Toronto, ON πŸ”— https://corsetti.dev

160 Followers  |  161 Following  |  16 Posts  |  Joined: 19.11.2024  |  1.7232

Latest posts by corsettidev.bsky.social on Bluesky

Trend or transformation? Tomorrow @raymmar.bsky.social and @somegood.co join me to unpack how AI is reshaping our web-dev livesβ€”especially for non-technical builders. πŸ” Don’t miss out on what I'm sure is going to be an awesome conversation.

Join us in the lodge at 12 EST: bit.ly/ncn-newlodge

08.05.2025 15:29 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
a groundhog is standing in the grass with its mouth open and saying `` hey ! happy birthday !!! '' ALT: a groundhog is standing in the grass with its mouth open and saying `` hey ! happy birthday !!! ''

A bunch of linkedIn messages just notified me that today is the 3rd year anniversary of @NoCodeNorth !!! πŸ₯³
Happy Birthday to the NoCode North community!!!

@jeremybleroux.bsky.social @pennyolo.bsky.social @corsettidev.bsky.social @andymci.bsky.social

07.01.2025 13:50 β€” πŸ‘ 9    πŸ” 2    πŸ’¬ 1    πŸ“Œ 1

How can I get all of these?! 😱🀩

Which is your favourite? Idk if I could pick one they’re all so awesome haha.

19.12.2024 13:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
a man says i am while talking to another man in a room ALT: a man says i am while talking to another man in a room
12.12.2024 22:43 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
nocode north is expanding its team to include four new members: the faces of Patrick Corsetti, Eric Unger, Andy Claremont, and Nancy Peng are shown in circles over a repeating background of a beaver carrying a stick

nocode north is expanding its team to include four new members: the faces of Patrick Corsetti, Eric Unger, Andy Claremont, and Nancy Peng are shown in circles over a repeating background of a beaver carrying a stick

Did you know we're wrapping up our 3rd year? We've had so much fun, we thought it was time to let others join the party.

The NCN team is growing! Let's give a warm welcome to Patrick Corsetti, Andy Claremont, Eric Unger and Nancy Peng.

12.12.2024 22:24 β€” πŸ‘ 6    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

Google might be behind in ai, but search you gotta admit they do right. Reddit's been so slow for me overall lately, I can't imagine not using google to search through reddit resutls

12.12.2024 06:06 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
a man with curly hair is looking at a laptop ALT: a man with curly hair is looking at a laptop

Got access to the Ghostty terminal emulator recently and just getting around to switching over my daily driver setup from kitty to ghostty. Also using this as an opportunity to reallllly clean up my shell and config files and it's so satisfying seeing the new structure come together πŸ‘» πŸ₯²

12.12.2024 05:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Check out the props on my component for what I'm talking about. Also added the Script name field for optional debug tracking.

04.12.2024 00:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Do you ever give access to custom code in Build Mode in #Webflow, through a rich text component prop or some other method?

Figured out an interesting way to structure a component so that the code can be directly in a prop instead of clicking to edit the rich text then clicking on the embed in there

04.12.2024 00:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Thanks!

01.12.2024 21:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’ll try to put together a quick demo later this week! πŸ₯³

25.11.2024 23:51 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Let me know if you try this and it works for you or there's something wrong, just came up with it last night. Also, when is Bluesky getting a custom code post style πŸ‘€

25.11.2024 19:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

(Bonus Part 2)
Text Element Content:
{
"name" : "Patrick",
"job" : "wizard"
}

<script>
(function() {
const data = JSON.parse(document.currentScript.parentNode.previousElementSibling.textContent);

console.log(`${data.name} is a ${data.job}!`);

})();
</script>

25.11.2024 19:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

(Bonus Part 1) This method works for single line text inputs, but if you want to use custom JSON data, you can also add in a text element before your embed, and then tie that fields contents to a multi-line text component property.

Then in your code, you can parse it and use the full schema:

25.11.2024 19:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

(3/3) Now if you want to have it work multiple times throughout the page, you can wrap the code inside an IIFE, that way any variables you create won't interfere with the global namespace

<script>
(function() {
// above function goes inside here
})();
</script>

25.11.2024 19:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

(2/3) In your embed's code, you can access those properties using the currentScript property like this:

const embed = document.currentScript.parentElement;
const name = embed.getAttribute('prop-name');

console.log(`Hello ${name}!`)

25.11.2024 19:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Alright (1/3) figured out a clean way to use component properties to fill out dynamic values in embeds similar to embeds used with CMS in #Webflow (apologies in advance for code formatting)

Add your embed, add attributes directly to the embed and then create properties.

"prop-name"="{{ Patrick }}

25.11.2024 19:28 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

I still wish I knew why the honeypot wasn’t working in the code but it was essentially the same logic in Xano!

Other things I’ve seen:

β€’ Mislabelling the email id field so that the validation will fail when a bot autofills

β€’ A time lock β€” most forms filled within 3s of page load are fake!

21.11.2024 18:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@corsettidev is following 20 prominent accounts