Form_errors not showing unless form_contents used


(Charlotte Westney) #1

Hi everyone,

 

I've got a fairly simple custom form, and if I use the %form_contents% keyword to output the form, all the error messages that I've put in for each required field gets output just after the field input.

 

But I need to customise the display of this form, so I'm using the keywords to output the individual fields. At the top I have:

<p class="errors">%form_errors_message%</p>
<p class="errors">%form_errors%</p>

 

If I submit the form without filling in required fields, the first keyword %form_errors_messages% outputs my customised message.

But the %form_errors% isn't outputting anything. It should be outputting a list of all the individual error messages for each field that isn't valid.

 

So why isn't %form_errors% working, and what do I need to do to get those errors to output but on my customised layout?

 

Thanks!
Charlie.


(Nic Hubbard) #2

Are you using the Accessible Format option?


(Bart Banda) #3

Are you using the Accessible Format option?

 

Sounds like it. The accessible format will output individual form field errors next to them, and will only print general form errors in the %form_errors% keyword such as "submission limit reached".


(Charlotte Westney) #4

Yup - that was it!

 

Have turned 'accessible format' to No, and working fine now.

The whole accessible format thing was introduced when I was away on maternity leave, its a great feature to have, and now I know to turn it off if I'm customising the html myself.

 

Thanks gang! C.