By daniorama on
Hello,
I have searched a lot but I cannot find any direct way to include validation to forms... any module or idea about how could I include forms with, for example, "only numbers", "between 1 and 5" or "max 20 letters" fields?
I want to know how to do that in forms or survey module (better), could I just include this things in the module php code? Would it be easier to use CCK?
Thank you!
Comments
Could it be that you are looking for the webforms module?
Hello I think if you need to email the results of the form and at the same time need to validate form entries you might want to try the webform module.
Better than email the
Better than email the results would be to send them to an excel spreadsheet and have a resume of all the forms filled. Survey Module does a wonderful work there, but the validation and layout issues are a bit obscure.
Maybe it would be possible to add the excel option in webforms, because the php code regarding to that is not really big, but survey module depends on forms module, so maybe it wouldn't be so easy. I think the fastest way would be change the validation code, but... any ideas? I saw some info about validating with forms api but I'm not sure how would that connect with survey module.
Anyway I will try webforms a bit (I already have it installed, but being hosted by Dreamhost it is really painful to try new modules, I must wait nearly 30 seconds to refresh... OMG)