yoleg / FormitFastPack

A flexible MODX Revolution extra that helps generate, template, and maintain HTML for forms and email reports.
https://websitezen.com/formitfastpack
8 stars 6 forks source link

Required Fields getting doubled in email report #4

Closed neoneddy closed 12 years ago

neoneddy commented 12 years ago

Here is the text I get using the base report code. I did add the :required bit to the name field so FormIt played nice.
http://modxwireframe.com/contact-us/ Here is the page where the email was generated from

A MODx Wireframe contact form submission was sent from the Contact page:

Name:required: Shawn

Email:required: shawn@himmdesign.com Message:required: something else

Color:required: blue

Submitform: Submit

Name: Shawn

Email: shawn@himmdesign.com Message: something else

Color: blue

yoleg commented 12 years ago

If I understand you correctly, you are using an outdated method of validating the form. Try using FormIt's &validate parameter. For example: [[!FormIt? ... &validate=full_name:required, email:required, phone:required, message:required]]

yoleg commented 12 years ago

I assume that was the problem, since there was no reply.