Page 1 of 1
Required fields not working
Posted: Thu 29. Sep 2005, 15:53
by donhomie
Hello,
I have created an e-mail form with the new content part. It has several checkboxes that I have set to required, but when leaving these empty no error is thrown and the form is being processed, whereas it should display the error messages I have set. I tried searching the forum but can't seem to find any other users with this problem.
Another problem I have is with selection lists, is there a way to allow multiple selections at once (ctrl clicking) in a selection list, instead of only one?
Thanks in advance for any suggestions!
Posted: Thu 29. Sep 2005, 16:02
by jscholtysik
Hi donhomie,
to your second question: Unfortunately the selection list is programmed only for single selection, so there is no way to select multiple items at once...
Perhaps in a later version of phpwcms...
Joachim
Posted: Thu 29. Sep 2005, 16:21
by donhomie
Thank you Joachim for your quick reply, I was afraid that this was the case when I looked at the code, but thought there might be an easy workaround for this. It is actually the reason that I am now using checkboxes, they allow users to select multiple options while still putting the results into one form field.
So to all other experts out there, my first question is all that's left: how can I make sure that checkboxes are a required field?
Posted: Fri 30. Sep 2005, 06:41
by Ben
I can select multiple items from the RFP page of my site - try the 'type of project' field about half-way down this page -
http://www.emergentmediagroup.com/rfp.phtml
btw, this site is running on 1.2.5-DEV
Posted: Fri 30. Sep 2005, 08:26
by jscholtysik
Hi Ben,
I use 1.2.3-DEV on my site and there it is still not possible...
Joachim
Posted: Fri 30. Sep 2005, 08:31
by Ben
Try setting the 'MAXLENGTH for Text/ROWS for Textarea and Lists' to 1 instead of zero. You should be able to select multiple after doing this.
Posted: Fri 30. Sep 2005, 08:37
by jscholtysik
Hi Ben,
great tip!! I will include it into the docu site asap.
Thanks.
Joachim
PS: Is done...

Posted: Fri 30. Sep 2005, 12:59
by Kosse
Out of topic:
Ben wrote:the RFP page of my site
Very nice Ben! I like it, smart questions asked and nicely presented, can I inspire myself from it (I'm starting to think of redesigning my own site)?
Cheers
Posted: Fri 30. Sep 2005, 16:41
by Ben
Kosse,
I have no problem with you using my RFP for inspiration.
Posted: Fri 30. Sep 2005, 23:27
by donhomie
Thanks for the tip on the multiple selection! This still does not solve the problem of the required field sadly... this does not work for selection lists either
Anyone have a solution?