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.

empty default value after submint and error field background

  1. AlexL
    Member

    Heya,
    i have one problem, help me to find solution.
    I have form with many many fields (such: name, family, mail and other). In form i add default value.
    and if user can't field this form, he doesn't get error, because form take automatic default value.

    In database i have many errors such: name, family and other.

    Also i need to change something in field after error. When i get error i changed to yellow background, now i need to do something else, when user fix the error (add some text) i need change backgraund to white.

    Can you find some solution?

    Alex

    Posted 13 years ago on Saturday November 5, 2011 | Permalink
  2. Please supply a link to your form and we will be happy to assist you with this. Thank you.

    Posted 13 years ago on Saturday November 5, 2011 | Permalink
  3. AlexL
    Member

    http://fm.mcti.co.il/?page_id=11

    Posted 13 years ago on Saturday November 5, 2011 | Permalink
  4. AlexL
    Member

    any suggest?

    Posted 13 years ago on Sunday November 6, 2011 | Permalink
  5. Regarding the first problem, I would recommend not using a default value, if you don't want that value there when the user does not submit content. The default value is designed to be used exactly like this: if there is no submission from the user, use the default value.

    If you want to add some placeholder text in the field that can prompt the user, that's a different issue we can help with. Looking at your form, it looks like you need placeholder text or tooltips, not default values as you have used them.

    I see that when there is a validation error, you change the field to yellow. It sounds like you want to change it to white when the user clicks into the field, to correct it. Then, after submission, if it fails again, it will be yellow, and when they click into the field, the background turns white, correct?

    If so, you will need to use jQuery to change the style of that field when it has focus.

    Posted 13 years ago on Tuesday November 8, 2011 | Permalink
  6. AlexL
    Member

    it onblurb or sumething else?

    thanks for help,

    Alex

    Posted 13 years ago on Tuesday November 8, 2011 | Permalink