ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How can i change the error template of a form?

September 17, 2010 10:57am

Subscribe [6]
  • #1 / Sep 17, 2010 10:57am

    rildrim

    25 posts

    How can i change the error template that comes out when i try to send a form without filling the required fields?

  • #2 / Sep 18, 2010 3:23pm

    Greg Salt

    3988 posts

    Hi rildim,

    The user message template is at CP Home > Admin > Specialty Templates > User Message Template. You can edit this as you wish but this is lightweight template and it’s not possible to use template tags like the weblog:entries tag.

    Cheers

    Greg

  • #3 / Sep 18, 2010 4:40pm

    Carl W Crawley

    136 posts

    If you take a look at http://www.madebyhippo.com/herdspeak/ - I did a post about using jQuery for form processing.

    Not quite what you were after, but it might be an alternative solution?

    Regards

    Carl

  • #4 / Sep 19, 2010 6:20pm

    Brandon Jones

    5500 posts

    Thanks Carl. Did that and Greg’s advice help, rildrim?

  • #5 / Sep 20, 2010 9:11am

    rildrim

    25 posts

    I was thinking of duplicating the same template of the form with the addition of the error message but the jquery option might be more elegant. Thank you guys.

  • #6 / Sep 20, 2010 11:28am

    rildrim

    25 posts

    Is it possible to change the variables of the template?

  • #7 / Sep 20, 2010 8:31pm

    Brandon Jones

    5500 posts

    Hi rildrim,

    Do you mean use different variables than what are in the template by default? As Greg said they are lightweight templates and are restricted to a small subset of variables, so that is not possible.

  • #8 / Sep 21, 2010 1:07pm

    rildrim

    25 posts

    I mean editing the text the variables display

  • #9 / Sep 22, 2010 3:18am

    John Henry Donovan

    12339 posts

    rildrim,

    Have a look under the Translation Utility which allows you to change the default text used throughout the control panel of EE. To begin with look for lang.messages.php

    CP Home ›  Admin ›  Utilities ›  Translation Utility

    Does that help?

  • #10 / Sep 22, 2010 9:03am

    rildrim

    25 posts

    Yes! thanks, thats exactly what i need for its for a website in spanish

  • #11 / Sep 22, 2010 9:45am

    Sue Crocker

    26054 posts

    Sounds like you’re all set. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases