Required fields are not longer required

baerle97 20 Feb, 2015
I had a problem using php in my mail template and got the advice to switch off "magig quotes". The template works fine now but all my required fields are no longer marked as required and you can submit an empty form.

The form uses designer code. The other form on the same server still uses required fields.
GreyHead 20 Feb, 2015
Hi baerle97,

Impossible to say much from the information here.

Please check your custom code - if Magic Quotes were on then there may be a lot of extra \\\\ added to it.

Bob
baerle97 23 Feb, 2015
Hello Bob,

the custom code seems to look fine.

I tried to remember what I have changed besides the Magic Quotes since the required fields worked the last time we tested the form.

The last thing I did was renaming the form giving it a version number in the form name. It used to be "20150426_MeldungObiPHP" and I renamed it to "20150426_MeldungObiPHP_V1.0".

So I copied the form again and renamed it to "20150426_MeldungObiPHP_V1_0" and everything works fine. Just avoiding dots in the forms name.

Thanks and best regards
Petra
GreyHead 23 Feb, 2015
Hi Petra,

A dot in the name would cause a problem (the name is used in PHP when the form is processed). I avoid anything except [a-z][A-z][0-9] and underscore _

Bob
This topic is locked and no more replies can be posted.