cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Date-Picker Field Mandatory By Default?

Add a New Topic Reply to Post
Post

George - Guest

6:24 pm - April 27, 2008

Please replace the ??? with your data!


[desc]: I seem to have a problem with the date-picker field or the date field itself.

The acts as mandatory by default even though the check box 'mandatory' is not checked. and triggers an error message if not filled in.

In this case i would appriciate if i could turn off the mandatory feature for the two date fields i'm using since they are not mandatory.

Otherwise i would have to create two different forms, but i'd rather have it work as is.

A secondary problem is to get the check boxes arranged at the end of the form, that seems not to be possible, maybe i just don't get it.... too many element

Thanks for looking into it.
_

Oliver - Admin

6:41 pm - April 27, 2008

posts 3906

You're using regexp for validation, that's what makes the fields required! If you erase your default text in the date fields, then it would validate the empty (since you correctly did not flag is as mandatory) field.

My suggestion:

  1. try the auto clean flag, to see if that would resolve the issue of "dd/mm/yyyy" being interpreted as user input
  2. or remove the regexp and keep "dd/mm/yyyy" as the default
  3. or delete the default value and e.g. add "dd/mm/yyyy" as a title

George - Guest

8:07 pm - April 27, 2008

Thanks for the hyperfast reply.

I copied the field as is from your booking template, so you might think about changing it there otherwise i fear you might have to answer this question more often. :-)

Your suggestions:

  1. try the auto clean flag, to see if that would resolve the issue of "dd/mm/yyyy" being interpreted as user input
  2. or remove the regexp and keep "dd/mm/yyyy" as the default
  3. or delete the default value and e.g. add "dd/mm/yyyy" as a title

1. Dosn't do it. = 'Please enter the required fields'

2. Was the right choice!! It works both ways now

3. doesn't do it. = 'Please enter the required fields'

Thanks a lot for your help

Add a New Topic Reply to Post


Reply to Topic: Date-Picker Field Mandatory By Default?
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 4        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)