Jump to content

mahpotofu

Member
  • Posts

    6
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    mahpotofu got a reaction from creedon in Lightbox form: How to add form field placeholders?   
    Creedon sir, it works marvelously! Much gratitude for your magic.
     
    Thank you all for your time!
  2. Like
    mahpotofu got a reaction from Chris_SQSP in Lightbox form: How to add form field placeholders?   
    Creedon sir, it works marvelously! Much gratitude for your magic.
     
    Thank you all for your time!
  3. Like
    mahpotofu reacted to creedon in Lightbox form: How to add form field placeholders?   
    Add the following to Settings > Advanced > Code Injection > HEADER.
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> Add the following to Page Settings > Advanced > Page Header Code Injection for the contact page.
    <script>   $( ( ) => {        /*            add placeholder text to first and last name fields in "Get in touch!"       form for v7.1 site.              SS version : 7.1              */            const dataFormId = '601ced4f7050527e47ff6076';     const firstNamePlaceholderText = 'first';     const lastNamePlaceholderText = 'last';          // do not change anything below, there be the borg here          let $form = $( '[data-form-id="' + dataFormId + '"]' );          $( '.first-name input', $form )            .attr ( 'placeholder', firstNamePlaceholderText );            $( '.last-name input', $form )            .attr ( 'placeholder', lastNamePlaceholderText );            } );        </script> Let us know how it goes.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.