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

  • Profile Image
    established82
    Asked 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

  • Profile Image
    brx250
    Answered 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