Link to home
Start Free TrialLog in
Avatar of LSE_IT_Training
LSE_IT_Training

asked on

FrontPage Textbox validation settings - Whitespace

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

Avatar of James Murrell
James Murrell
Flag of United Kingdom of Great Britain and Northern Ireland image

can you post code here
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

Avatar of LSE_IT_Training
LSE_IT_Training

ASKER

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>

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
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
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.
ASKER CERTIFIED SOLUTION
Avatar of James Murrell
James Murrell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks again.