The code here seems to work well on the surface, however it sets the value of Last Name for the new contact, literally to the text string 'NA', rather than it being null/empty, which is not quite the desired behaviour. You would need to take care not to include Last Name in any of your correspondence, to avoid emailing contacts something like, "Hello Ffion NA"!
Custom Newsletter Block w/ only First Name & Email
in Customize with code
Posted · Edited by newstaircase
Added screenshot
The code here seems to work well on the surface, however it sets the value of Last Name for the new contact, literally to the text string 'NA', rather than it being null/empty, which is not quite the desired behaviour. You would need to take care not to include Last Name in any of your correspondence, to avoid emailing contacts something like, "Hello Ffion NA"!