Required fields not working

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
donhomie
Posts: 10
Joined: Thu 29. Sep 2005, 15:45

Required fields not working

Post 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!
jscholtysik

Post 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
donhomie
Posts: 10
Joined: Thu 29. Sep 2005, 15:45

Post 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?
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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
jscholtysik

Post by jscholtysik »

Hi Ben,


I use 1.2.3-DEV on my site and there it is still not possible...


Joachim
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
jscholtysik

Post by jscholtysik »

Hi Ben,


great tip!! I will include it into the docu site asap.


Thanks.


Joachim


PS: Is done... :-)
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Kosse,
I have no problem with you using my RFP for inspiration.
donhomie
Posts: 10
Joined: Thu 29. Sep 2005, 15:45

Post 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?
Locked