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.
Form Builder error messages
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Form Builder error messages
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.
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.
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.
Re: Form Builder error messages
I would like to face with the standard mark ( <--- ) without the message.
Thanks.
Thanks.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Form Builder error messages
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
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.
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.
-
- Forum Members
- Posts: 19
- Joined: Sun Aug 31, 2008 8:55 am
Re: Form Builder error messages
did you manage to sort this problem?gdinfo wrote: I would like to face with the standard mark ( <--- ) without the message.
Thanks.
I too am having this issue.
Cheers
Re: Form Builder error messages
I did remove the second error message (with the form builder)
Look for this line:
So just remove the {$entry->error} part if you don't want the error message to show.
Look for this line:
Code: Select all
{if $entry->valid == 0} <--- {$entry->error}{/if}
-
- Forum Members
- Posts: 19
- Joined: Sun Aug 31, 2008 8:55 am
Re: Form Builder error messages
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 --
to
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
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}
Code: Select all
{if $entry->valid == 0} <span class="validation">*required field</span> {/if}
cheerss!
slax