Problems with Cutting & Pasting Forms

G

Guest

When I cut & paste a form on the same page FP 2003 adds numbers to the ends
of some fields. Here is an example:

Original line in form:
<input type="text" name="item-AC 20501-|0.00|Abetta
Cordura|NA|22:27x19x16:S::" size="3" value="1">

After cutting and pasting the above line, the new form shows:
<input type="text" name="item-AC 20501-|0.00|Abetta
Cordura|NA|22:27x19x16:S::1" size="3" value="1">

Note the added "1" after the 16:S::

Since this is a weight entry that transfers the weight and box size to UPS
for shipping calculations, the "1" creates a big problem.


Another sample:
<input type="submit" name="add_to_cart" value="Add to Cart!"> </font></p>

After cutting and pasting it, the new form gets changed to:
<input type="submit" name="add_to_cart1" value="Add to Cart!"> </font></p>


And another place it does it is in the "Name" field in the form when I am
using options. Here is one sample:

OPTION|2|AC 20501

After cutting and pasting THE ORIGINAL (not the pasted one) one Gets changed
to:

OPTION|2|AC 205011


There is a option in "Page Properties" that is labeled "Make ID unique on
paste". I have it unselected.

I did not have this problem with any of the past versions of FP.

Anyone have a clue how to fix this? I have 42 sites, with over 20,000 items,
and its driving me crazy :) Everytime I add to or make changes to a page I
have to switch to code view and check all the form fields to make sure they
are not changed.
 
G

Guest

This is occurring because copying and pasting a form into the same page
duplicates all the form field IDs, so FrontPage "helps" you my making the IDs
unique.

To turn off this behavior, Choose Page Options from the Tools menu. Then, on
the General tab, clear Make ID Unique On Paste.

I must tell you, though, that hand-coding this for each of 20,000 items
seems like a nightmare. You really ought to get this programmed in ASP.NET or
ASP so you have just a few "template" pages that draw information from a
database full of product info.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
G

Guest

I do have the "Make ID unique on paste" unselected. That's the first thing
I did when I upgraded to FP2003 because it defaulds to being selected and
changes every field in the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top