Jump to content

kc-designs-101

Member
  • Posts

    3
  • Joined

  • Last visited

kc-designs-101's Achievements

Level 1

Level 1 (1/20)

1

Reputation

  1. @paul2009 it looks like placeholder text is available on Email and Text inputs, but not on First / Last Name or Phone inputs. Do you know if the update will include placeholder text for all input fields? Is there a JS or JQuery workaround someone could recommend in the meantime?
  2. Of course! Site info below: https://beagle-spinach-ebxb.squarespace.com/ P: SQForm The form is at the bottom of the page. Here is the JQery I have in the Header of the site (it does not add the placeholder): <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $( ( ) => { /* @CREEDON */ const FormClass = 'react-form-contents'; const firstNamePlaceholderText = 'First Name'; const lastNamePlaceholderText = 'Last Name'; const monthPlaceholderText = 'MM'; const dayPlaceholderText = 'DD'; const yearPlaceholderText = 'YYYY'; let $form = $( '[class="' + FormClass + '"]' ); $( '.first-name input', $form ) .attr ( 'placeholder', firstNamePlaceholderText ); $('#email-yui_3_17_2_1_1683468674329_5770-field').attr('placeholder','Email'); } ); </script> Thank you for your help!
  3. @tuanphan could you show how to add custom placeholders to a standard Squarespace form (first name, last name, email, phone, text field)? I've tried all sorts of Jquery and Javascript solutions with no success.
×
×
  • 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.