473,382 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Form Fields Visibility

C
Hi,

I have a web form which is quite long.

My first field is required.

If my user submits the form the page just sits there and
the do not see my validation message at the top of my page.

Do you know how I can reposition teh page so they see teh
message i.e.scroll back up the page?

Thanks,
C
Nov 17 '05 #1
5 1226
I assume that post back happens in your case, after which the focus still
remains on the button. You should turn off the smart navigation feature in
case of the error.

HTH
Raja

"C" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Hi,

I have a web form which is quite long.

My first field is required.

If my user submits the form the page just sits there and
the do not see my validation message at the top of my page.

Do you know how I can reposition teh page so they see teh
message i.e.scroll back up the page?

Thanks,
C

Nov 17 '05 #2
I think what C meant is the field on the top is required field. And when the
user clicks on the button on the very bottom of the page, the page will not
post back because the required field validator fires up. However, because
the page is so long, the user may not realize the required field on the top
is not filled out.

My suggestion is add a validation summary below the submit button. So when
the user clicks on the button, the validation summary will show all
validation message if there are any fields filled with invalid data.

L.L.

"Raja Saravanan" <ra***********@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
I assume that post back happens in your case, after which the focus still
remains on the button. You should turn off the smart navigation feature in
case of the error.

HTH
Raja

"C" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Hi,

I have a web form which is quite long.

My first field is required.

If my user submits the form the page just sits there and
the do not see my validation message at the top of my page.

Do you know how I can reposition teh page so they see teh
message i.e.scroll back up the page?

Thanks,
C


Nov 17 '05 #3
That is exactly my problem.

Thanks for your reply.
-----Original Message-----
I think what C meant is the field on the top is required field. And when theuser clicks on the button on the very bottom of the page, the page will notpost back because the required field validator fires up. However, becausethe page is so long, the user may not realize the required field on the topis not filled out.

My suggestion is add a validation summary below the submit button. So whenthe user clicks on the button, the validation summary will show allvalidation message if there are any fields filled with invalid data.
L.L.

"Raja Saravanan" <ra***********@hotmail.com> wrote in messagenews:eK**************@TK2MSFTNGP11.phx.gbl...
I assume that post back happens in your case, after which the focus still remains on the button. You should turn off the smart navigation feature in case of the error.

HTH
Raja

"C" <an*******@discussions.microsoft.com> wrote in message news:0b****************************@phx.gbl...
> Hi,
>
> I have a web form which is quite long.
>
> My first field is required.
>
> If my user submits the form the page just sits there and > the do not see my validation message at the top of my page. >
> Do you know how I can reposition teh page so they see teh > message i.e.scroll back up the page?
>
> Thanks,
> C


.

Nov 17 '05 #4
I think what C meant is the field on the top is required field. And when the
user clicks on the button on the very bottom of the page, the page will not
post back because the required field validator fires up. However, because
the page is so long, the user may not realize the required field on the top
is not filled out.

My suggestion is add a validation summary below the submit button. So when
the user clicks on the button, the validation summary will show all
validation message if there are any fields filled with invalid data.

L.L.

"Raja Saravanan" <ra***********@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
I assume that post back happens in your case, after which the focus still
remains on the button. You should turn off the smart navigation feature in
case of the error.

HTH
Raja

"C" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Hi,

I have a web form which is quite long.

My first field is required.

If my user submits the form the page just sits there and
the do not see my validation message at the top of my page.

Do you know how I can reposition teh page so they see teh
message i.e.scroll back up the page?

Thanks,
C


Nov 17 '05 #5
That is exactly my problem.

Thanks for your reply.
-----Original Message-----
I think what C meant is the field on the top is required field. And when theuser clicks on the button on the very bottom of the page, the page will notpost back because the required field validator fires up. However, becausethe page is so long, the user may not realize the required field on the topis not filled out.

My suggestion is add a validation summary below the submit button. So whenthe user clicks on the button, the validation summary will show allvalidation message if there are any fields filled with invalid data.
L.L.

"Raja Saravanan" <ra***********@hotmail.com> wrote in messagenews:eK**************@TK2MSFTNGP11.phx.gbl...
I assume that post back happens in your case, after which the focus still remains on the button. You should turn off the smart navigation feature in case of the error.

HTH
Raja

"C" <an*******@discussions.microsoft.com> wrote in message news:0b****************************@phx.gbl...
> Hi,
>
> I have a web form which is quite long.
>
> My first field is required.
>
> If my user submits the form the page just sits there and > the do not see my validation message at the top of my page. >
> Do you know how I can reposition teh page so they see teh > message i.e.scroll back up the page?
>
> Thanks,
> C


.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Oleg | last post by:
Hello there: I've been trying to create two different sets of required fields in one form and to use a radiobutton as sort of a switcher between these sets. In my HTML form there are two...
2
by: Pat Scott | last post by:
I am looking for a general purpose javascript snippet that enables me to <div> or <span> HTML to make portions of the form be hidden and then appear. The form contains about 12 sections and some...
2
by: Gawie Marais | last post by:
hi all, i have a form and would like to check two fields. if field 1 containes the letter 'c' and the other field contains 'undefined', then an error should apprear ina box on the screen. can...
12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
8
by: Frank Bishop | last post by:
I don't know very much yet and I'm looking to do some form validation on 20 form fields that accept numbers. I would like to alert the user if the combined values of any of the fields is greater...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
5
by: Raffi | last post by:
Hi folks, I'm new to JavaScript and need some help. I have a form with a select field. Depending on what is selected in this field, I want to display or not display another select field. For...
3
by: msg2ajay | last post by:
hi, I am not able to align the textfield to the top of the frame one bye one. The problem is it is showing where it is hiding..... so is it possible to allign the text field to the top of...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
3
gingawarrior
by: gingawarrior | last post by:
Hi All, I've written some code to act as a validator for a set of form fields - it accepts a string of '~' delimited item names and then loops through to evaluate if they are either empty or =='999'...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.