What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Can onfocus="this.value='';" be used?

    Asked by established82 on August 07, 2011 at 09:29 PM

    I have a particular form where for the sake of design, need to use the default value as the label (yes unconventional, but the design is already approved and the site is ready for launch). The problem is, I can't see anywhere I can have use the onfocus="this.value='';" in the input tag. Is this something that can be added or a setting I'm not finding? 


    Thank you

    Page URL:

  • Profile Image

    Answered by brx250 on August 07, 2011 at 11:24 PM

    Hi established82,

    Thank you for using JotForm.

    You have three options. You can copy your form's code, edit and include the necessary script, then integrate it on your site. But this might cause some complications because of the nested nature of the forms, so I would not recommend that.

    Another option is to use JotForm's Default Value, as shown below. 

    This gives the particular field a specific value when the form loads so the user has the option to leave it as is. It is usually used to save time in filling up the form.

    You can also use JotForm's Hint Example.

    It gives users an idea on what a particular field should contain. You can visit this link for a sample form. Hope this helps.

    If you have further issues and concerns, please feel free to contact us.



     Albert  |  JotForm Support