Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Newsletter block last name field


Recommended Posts

HI everyone 

I can't seem to find anywhere to remove the the last name field on the newsletter form block? I only want to ask for people's FIRST name and email, NOT their last name, and not just their email. There seems to be no option for this. Would this be a coding thing? I hope not.....

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

You can't remove Last name field unless using JavaScript (Need a Business Plan).

If you use Business Plan, you can share link to page where you use newsletter block, I can take a look.

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 months later...
On 8/9/2020 at 12:52 AM, taylorlaidlaw said:

Hi Tuan, 

How do I delete the last name field on all of the newsletter blocks on this site?

https://grape-gerbil-aby9.squarespace.com/

password: hustle

Thank you!!

Add to Page Settings > Advanced > Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
 const lnames = document.querySelectorAll('.last-name input')
   const lnameFields = document.querySelectorAll('.last-name')
  $(document).ready(function(){

     lnames.forEach(lname => {
   lname.value = "-"
  })

     lnameFields.forEach(lnameField => {
     lnameField.style.display = "none"
  })
      
     
 });
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...