It would be great if you could elaborate a little on what you mean by "lock down" and the significance of the "//" preset. Would it be possible for you to provide a few examples?
If you simply want to make sure your date is displayed in the format mm/dd/yyyy, which may be different to the format of your underlying data format for storing the dates, then you can use the Value Conversions section within the Field Details tab and enter MM/dd/yyyy in the Display edit box for Date Formats.
I have a need to set a date field that forces the user to enter say 02172012 and nothing more so the / / are already available, if left open, the user could enter formats like "FEB-17-2012" "17feb12" and so on.
I have a need to set a date field that forces the user to enter say 02172012 and nothing more so the / / are already available, if left open, the user could enter formats like "FEB-17-2012" "17feb12" and so on.
The display pattern I mentioned earlier should display an error if the format does not match the specified pattern. Make sure you check the Validation checkbox under Events for the Form Submission . This should prevent entries that do not comply with your desired pattern.
To autocomplete the slases you will need to write some custom script 'hooked' into an onkeypress event for example on your date field.
RE: mask a date field
It would be great if you could elaborate a little on what you mean by "lock down" and the significance of the "//" preset. Would it be possible for you to provide a few examples?
If you simply want to make sure your date is displayed in the format mm/dd/yyyy, which may be different to the format of your underlying data format for storing the dates, then you can use the Value Conversions section within the Field Details tab and enter MM/dd/yyyy in the Display edit box for Date Formats.
Kind Regards
Abdul
RE: mask a date field
RE: mask a date field
RE: mask a date field
The display pattern I mentioned earlier should display an error if the format does not match the specified pattern. Make sure you check the Validation checkbox under Events for the Form Submission . This should prevent entries that do not comply with your desired pattern.
To autocomplete the slases you will need to write some custom script 'hooked' into an onkeypress event for example on your date field.
Kind Regards
Abdul