Form Builder error messages

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
gdinfo
Forum Members
Forum Members
Posts: 16
Joined: Tue Apr 10, 2007 8:38 pm

Form Builder error messages

Post by gdinfo »

Hi,
is there a way to avoid Form Builder validation to present errors in at the beginning of the form?
Where can I found the error/messages presentation code?

This is the HTML generated code for error messages:


Please enter a value for "Message"
Please enter a value for "Company"
Please enter a value for "Person"
Please enter a value for "Email"

I tried to put a CSS display: none; in the h4 tag and it work fine but I would prefer to comment the code

Thanks.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Form Builder error messages

Post by calguy1000 »

the proper solution is to style the output.

why not just mark the fields as not required in your form if you're not concerned about the errors.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
gdinfo
Forum Members
Forum Members
Posts: 16
Joined: Tue Apr 10, 2007 8:38 pm

Re: Form Builder error messages

Post by gdinfo »

I would like to face with the standard mark ( <--- ) without the message.

Thanks.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Form Builder error messages

Post by calguy1000 »

You're right, the way that the output message is handled is kind of ugly
What your looking for is in the validate method of Form.class.php
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
actionslax
Forum Members
Forum Members
Posts: 19
Joined: Sun Aug 31, 2008 8:55 am

Re: Form Builder error messages

Post by actionslax »

gdinfo wrote: I would like to face with the standard mark ( <--- ) without the message.

Thanks.
did you manage to sort this problem?

I too am having this issue.

Cheers
dinot
New Member
New Member
Posts: 5
Joined: Sun Nov 02, 2008 10:04 pm

Re: Form Builder error messages

Post by dinot »

I did remove the second error message (with the form builder)

Look for this line:

Code: Select all

{if $entry->valid == 0} <--- {$entry->error}{/if}
So just remove the  {$entry->error} part if you don't want the error message to show.
actionslax
Forum Members
Forum Members
Posts: 19
Joined: Sun Aug 31, 2008 8:55 am

Re: Form Builder error messages

Post by actionslax »

cheers dinot that did the trick!

I didn't even try to look for the ascii eqivallent of that < shhheessh.

Also for anyone else having similar problem I

changed this --

Code: Select all

{if $entry->valid == 0} <--- {$entry->error}{/if}
to

Code: Select all

{if $entry->valid == 0} <span class="validation">*required field</span> {/if}
which I can now control much easier. I also plan to replace the asterix with a small star image for more accessibility options.

cheerss!

slax
Post Reply

Return to “Modules/Add-Ons”