Results 1 to 1 of 1
-
13th Jan 2008, 01:26 AM #1OPMember
[TUT]Custom Profile Fields - Expected Input Format
When entering a custom profile field, you have the option of requiring a specific format for the response.
Expected Input Format
Use: a for alpha characters
Use: n for numerics.
Example, for credit card numbers: nnnn-nnnn-nnnn-nnnn
Example, Date of Birth: nn-nn-nnnn
Leave blank to accept any input
Example 1
Let's take an example of Date of Birth from above. Filling in nn-nn-nnnn into the Expected Input Format field, the following are acceptable
01-01-1970
12-25-0000
11-12-1955
While the following are NOT acceptable
1-1-70
12-25-00
11/12/1955
1-23-1970
Example 2
Say the custom profile field is "What is your favorite food?". You set the expected input as aaaa
The following are acceptable
teas
plum
ienc
qqqq
The following are NOT acceptable
watermelon
pizza
amp4
Remember that an expected input is NOT required. Leaving the field blank would allow this...
Example 3
Profile Field Question: What's your favorite TV show?
The following are acceptable ..
Heroes
Grey's Anatomy
Meerkat Manor
58hfhfh8erad
Nothing would be unacceptable.
In conclusion, the Expected Input Field can be useful in certain circumstances. Where the data to be entered is NOT a set format with a SET number of characters, it is not recommended for use.
If you are requiring a set format, it is recommended that you include the format in the description of the Custom Profile Field. Assuming the field was date of birth, and required format was nn/nn/nnnn, you'd want to include in the description something like "Must be entered in the format nn/nn/nnnn" so that your users know how to enter it.
An incorrectly formatted response returns the error
"You must complete the form fully before proceeding. Please go back and check the data you entered."
Which is a bit misleading, as it leads a user to believe that they missed filling in a part of the form, rather than the field containing improperly formatted data.Lease Reviewed by Lease on . [TUT]Custom Profile Fields - Expected Input Format When entering a custom profile field, you have the option of requiring a specific format for the response. As you can see, a is for alpha characters (a-z) and n is for numbers (1-9) Example 1 Let's take an example of Date of Birth from above. Filling in nn-nn-nnnn into the Expected Input Format field, the following are acceptable Rating: 5Extremely helpful article about hiding your identity here
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Custom Post Format?
By jiefangjun in forum WordpressReplies: 3Last Post: 29th Feb 2012, 12:15 PM -
how to add custom Post Format in wordpress?
By movie-planet in forum WordpressReplies: 11Last Post: 30th Oct 2011, 05:11 PM -
Custom Fields
By speedofpain in forum IP.BoardReplies: 3Last Post: 20th Feb 2011, 08:02 AM -
Empty Profile Fields Error
By ceekeigh in forum vBulletinReplies: 2Last Post: 10th Nov 2009, 02:49 AM -
vb custom profile fields
By lenney in forum vBulletinReplies: 1Last Post: 25th May 2009, 08:38 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...