I’ve made sure the code is exact. It did work properly once, and then with no change to the code, it stopped working.
The email sends, but the ${name} variable is not inserted into the triggered email. It is left blank, and only a comma appears. Any thoughts on how to resolve this?
Four screenshots below:

When clicking “Give Me That Guide”, the email sends, but the ${name} variable is not inserted into the triggered email. It is left blank, and only a comma appears.
This is the link: https://www.turnboot.com/free-onboarding-formula if you want to see the issue for yourself. There’s no need to click on the link though. Here is what happens:

Again, when clicking “Give Me That Guide” in the lightbox the pops up, The email sends, but the ${name} variable is not inserted into the triggered email. It is left blank, and only a comma appears.
First of all, are you testing your site in preview or on a published site as you should not be using the preview.
https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-contacts
Test your form in your published site to see that it creates the contact and sends a Triggered Email.
Make sure that you have saved and published your triggered email as well.
Plus, probably dumb question here, however if this form is on a lightbox, then make sure that your page code for it is on the lightbox page too.
Also, you don’t need the ‘,’ on the end of line 15.
As for the variable used on the triggered email, I would use ‘first’ or firstName’ rather than just ‘name’.
This is because ‘name’ is also a field key of the field called ‘Name’ which Wix uses for the full name.
As you have put in ‘name’ it might be trying to look for the value of the ‘name’ field and not the value in the ‘firstName’ filed.
Finally, make sure that all your element id names match up in your code and that the triggered email variables are correct in your code too.
Have a look here at creating a triggered email and add in a fallback as shown in Step 3 for when it can’t gather a name. https://support.wix.com/en/article/creating-a-triggered-email
Thanks for your detailed responses. Per the suggestions:
-Yes, I’m testing on the re-saved and re-published site, not the preview. It sends the trigger email, but does not include the contact name.
-Yes, I’ve made sure to publish the trigger email
- I just removed the “,” on line 15 and retried. No luck
-I just changed the variable in the trigger email from ‘name’ to ‘first’, and matched the Corvid code to match that. All element id names match up in the code, along with the triggered email variables in the code. I also created the fallback.
I resaved and rebublished both the trigger email and the site, retried on the newly published site with a name and also without a name. No luck with the contact name being added. Also, the fallback is not working.
I really appreciate your great suggestions.
Keep them coming and I’ll keep trying to get it to work properly!
Update: When I disconnect from a dataset, the contact name properly generates in the email. However, the new contact of course is not created in the dataset. How do I accomplish both?
Any ideas, given this new info?