Solved

FrontPage Textbox validation settings - Whitespace

Posted on 2008-06-10
8
329 Views
Last Modified: 2013-12-24
Hi, I hope someone can help...

I've inserted a text box within a form on a web page (in FrontPage), in order to collect the user's name.

I have applied validation settings to allow a data type of text, and have ticked the boxes to allow both Letters and Whitespace. When testing the form, it could not be submitted until I removed the space between the first and last name, despite the fact that I have specified that Whitespace is allowed.

Does anyone know why?

Thanks

0
Comment
Question by:LSE_IT_Training
  • 5
  • 3
8 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 21753159
can you post code here
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 21755444
if it helps i just create a form with text box and have same data type of text, and have ticked the boxes to allow both Letters and Whitespace  as you and all ok
html>
 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>New Page 1</title>

</head>
 

<body>
 

<form method="POST" action="--WEBBOT-SELF--">

	<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

	<p>

	<!--webbot bot="Validation" S-Display-Name="name" S-Data-Type="String" B-Allow-Letters="TRUE" B-Allow-WhiteSpace="TRUE" -->

	<input type="text" name="T1" size="20"></p>

	<p>&nbsp;</p>

	<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>

</form>
 

</body>
 

</html>

Open in new window

0
 

Author Comment

by:LSE_IT_Training
ID: 21758771
Thanks for the response, the code is below. The text box concerned is the first one - "Your Name". I can't see any difference between your code and this though....

<form method="POST" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1" action="http:NOTE: REMOVED FOR POSTING PURPOSES THOUGH CORRECT">
      <table border="0" width="100%" cellspacing="0" cellpadding="5" id="table1">
            <tr>
                  <td align="right">
                  <p align="right">Your name:</td>
                  <td width="279" colspan="5">
                  &nbsp;<!--webbot bot="Validation" S-Display-Name="Your Name" S-Data-Type="String" B-Allow-Letters="TRUE" B-Allow-WhiteSpace="TRUE" --><input type="text" name="name" size="30"></td>
            </tr>
            <tr>
                  <td align="right">
                  <p align="right">Is this the first FrontPage course you've attended?</td>
                  <td width="279" colspan="5">
                  <input type="radio" value="YES" name="first_course">Yes&nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="radio" name="first_course" value="NO" checked>No</td>
            </tr>
            <tr>
                  <td align="right">What was the first FrontPage course you attended?</td>
                  <td width="279" colspan="5">
                  &nbsp;<!--webbot bot="Validation" s-display-name="What first course?" b-value-required="TRUE" b-disallow-first-item="TRUE" --><select size="1" name="what_first_course">
                  <option selected>Please select >>>></option>
                  <option>Not Applicable</option>
                  <option>FrontPage: Introduction</option>
                  <option>FrontPage: Managing Your Website</option>
                  <option>FrontPage: Working With Images</option>
                  </select></td>
            </tr>
            <tr>
                  <td align="right">How would you rate this course so far? [1=very
                  poor, 5 =very good]</td>
                  <td width="56" align="center">
                  &nbsp;<!--webbot bot="Validation" s-display-name="Course Rating" b-value-required="TRUE" --><input type="radio" name="course_rating" value="1"><br>
                  1</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="2"><br>
                  2</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="3"><br>
                  3</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="4"><br>
                  4</td>
                  <td width="55" align="center">
                  <input type="radio" name="course_rating" value="5"><br>
                  5</td>
            </tr>
            <tr>
                  <td>&nbsp;</td>
                  <td width="279" colspan="5">&nbsp;</td>
            </tr>
            <tr>
                  <td>&nbsp;</td>
                  <td width="279" colspan="5">
                  <input type="submit" value="Submit" name="B1"></td>
            </tr>
      </table>
      <p>&nbsp;</p>
      <input type="hidden" name="email_subject" value="FrontPage Course Questionnaire">
      <input type="hidden" name="recipient" value="c.steele">
      <input type="hidden" name="end_of_text" value="eot">
      <input type="hidden" name="tab_format" value="yes">
</form>

0
 
LVL 31

Expert Comment

by:James Murrell
ID: 21758829
works on my server > went to page http:NOTE: REMOVED FOR POSTING PURPOSES THOUGH CORRECT  (so i guess it worked)
on
it nows does to a text file on my system
http://www.websaintstest.co.uk/new_page_2.htm
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 31

Expert Comment

by:James Murrell
ID: 21758837
results are here

*******************************************************************************
name:              James Murrell
first_course:      NO
what_first_course: FrontPage: Managing Your Website
course_rating:     1
B1:                Submit
email_subject:     FrontPage Course Questionnaire
recipient:         c.steele
end_of_text:       eot
tab_format:        yes
0
 

Author Comment

by:LSE_IT_Training
ID: 21759459
Thanks again, it looks like it may be a server issue then. I'll hold back on awarding the points for a day, in case someone else has any ideas.
0
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 21759511
no worries anything else just contact me
0
 

Author Closing Comment

by:LSE_IT_Training
ID: 31465770
Thanks again.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now