I recently noticed that when I save a file in FrontPage 2003 the form name I
gave it was automatically being overwritten with "FrontPage_Form1" - see
example below:

This was how I saved it:
<FORM name="frmAdminUserPass" id="frmAdminUserPass" method="post"
action="userpassupdate.asp?save=admin">

When I opened the page again this is what it had been changed to:
<FORM name="FrontPage_Form1" id="frmAdminUserPass" method="post"
action="userpassupdate.asp?save=admin">

Can anyone tell me why this is happening and how I can stop it. If not, can
anyone tell me if it matters! I have external script routines that
reference the page (ie. frmAdminUserPass.txtUsername.value = "whatever") and
I don't know whether the first part of the reference relates to the form
name or the form id. If it's the form id then I guess it doesn't matter
that FrontPage is changing the name as it therefore wouldn't be relevant to
what I'm doing.

Thanks in advance for your help!

Debbie

Re: Form name being changed automatically by FrontPage when saving! by Ronx

Ronx
Wed Aug 31 03:10:12 CDT 2005

The script will be referencing the form name.
If you use FrontPage validation FrontPage will change the form name to
FrontPage_FormX where X is a number, the first form on the page will
be 1, the second 2 and so on. To stop the renaming, do not use
FrontPage validation.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

"Debbie" <britbitz@hotmail.com> wrote in message
news:apednbWZUOTIHoneRVn-sA@adelphia.com...
>I recently noticed that when I save a file in FrontPage 2003 the form
>name I
> gave it was automatically being overwritten with "FrontPage_Form1" -
> see
> example below:
>
> This was how I saved it:
> <FORM name="frmAdminUserPass" id="frmAdminUserPass" method="post"
> action="userpassupdate.asp?save=admin">
>
> When I opened the page again this is what it had been changed to:
> <FORM name="FrontPage_Form1" id="frmAdminUserPass" method="post"
> action="userpassupdate.asp?save=admin">
>
> Can anyone tell me why this is happening and how I can stop it. If
> not, can
> anyone tell me if it matters! I have external script routines that
> reference the page (ie. frmAdminUserPass.txtUsername.value =
> "whatever") and
> I don't know whether the first part of the reference relates to the
> form
> name or the form id. If it's the form id then I guess it doesn't
> matter
> that FrontPage is changing the name as it therefore wouldn't be
> relevant to
> what I'm doing.
>
> Thanks in advance for your help!
>
> Debbie
>
>



Re: Form name being changed automatically by FrontPage when saving! by Debbie

Debbie
Fri Sep 09 14:33:24 CDT 2005

I had been doing all my validation through scripts, but then I remembered
that on this particular form I had used some FrontPage's validation options
on one of the textboxes. I removed/unchecked these options and then I was
finally able to name the form exactly what I wanted and FrontPage left it
alone. Thanks!



"Ronx" <ronx917@hotmail.com> wrote in message
news:uTVarNgrFHA.1132@TK2MSFTNGP10.phx.gbl...
> The script will be referencing the form name.
> If you use FrontPage validation FrontPage will change the form name to
> FrontPage_FormX where X is a number, the first form on the page will be 1,
> the second 2 and so on. To stop the renaming, do not use FrontPage
> validation.
> --
> Ron Symonds
> Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> "Debbie" <britbitz@hotmail.com> wrote in message
> news:apednbWZUOTIHoneRVn-sA@adelphia.com...
>>I recently noticed that when I save a file in FrontPage 2003 the form name
>>I
>> gave it was automatically being overwritten with "FrontPage_Form1" - see
>> example below:
>>
>> This was how I saved it:
>> <FORM name="frmAdminUserPass" id="frmAdminUserPass" method="post"
>> action="userpassupdate.asp?save=admin">
>>
>> When I opened the page again this is what it had been changed to:
>> <FORM name="FrontPage_Form1" id="frmAdminUserPass" method="post"
>> action="userpassupdate.asp?save=admin">
>>
>> Can anyone tell me why this is happening and how I can stop it. If not,
>> can
>> anyone tell me if it matters! I have external script routines that
>> reference the page (ie. frmAdminUserPass.txtUsername.value = "whatever")
>> and
>> I don't know whether the first part of the reference relates to the form
>> name or the form id. If it's the form id then I guess it doesn't matter
>> that FrontPage is changing the name as it therefore wouldn't be relevant
>> to
>> what I'm doing.
>>
>> Thanks in advance for your help!
>>
>> Debbie
>>
>>
>
>