PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Clearing Default Field Values with jQuery

  1. Roberto Rodriguez
    Member

    I followed the steps as outlined in the link below:

    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    When I view the form in the Editor I see my default value "Phone" but when i view my site I don't my default value "Phone". Anyone know why that is?

    FYI - I am using the Single Line Text with a US Phone input mask.

    Thanks.

    Posted 7 years ago on Tuesday December 11, 2012 | Permalink
  2. Please try it without the input mask. I believe the input mask and the jQuery 'clearit' functionality will conflict. Please try without the mask to see if it works that way.

    Posted 7 years ago on Tuesday December 11, 2012 | Permalink
  3. Roberto Rodriguez
    Member

    I want my phone number field to look like the "phone" field in the link below which was created using Gravity Forms.

    http://fbcreditlaw.com/

    Chris - If I remove the input mask it works properly but I obviously lose the phone number formatting functionality that I also want. How can I achieve this?

    Thanks.

    Posted 7 years ago on Tuesday December 11, 2012 | Permalink
  4. I don't know of a way to have both. Because both functions are provided by JavaScript, you'd have to combine the two scripts somehow to work at the same time.

    Posted 7 years ago on Monday December 17, 2012 | Permalink