Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Form Field Properties problem 1

Status
Not open for further replies.

awhitney

MIS
Jun 14, 1999
6
US
I am working on a form with 7 text fields. The first 3 are along the top of the form and are pretty generic (text only, no multiple lines, no scroll, with rich text formatting and spell checker). The 4th field is a narrative field (multiple lines, rich text formatting with spell checker). The last 3 are located at the bottom of the form and like the first 3 are standard.

I want to do and allow the 4th field to extend to the next page (beyond the last 3 fields without reposition the form layout). Is there a way to manipulate the 4th field to continue to the next page(s) or give the illusion of continuous typing to additional pages?
 
Maybe this will help..
Name the field on the next page something unique to the whole document. Also, you will need to put a char limit on at least the First of the "Multi-Page" fields. When you hit the char limit, you will then automatically go to the field that is on the next page.

What to do.
In the previous field you need to create a Custom Keystroke. Custom Keystroke is in the Formatting part in properties of that field.
Here is the code for the Custom Keystroke:
AutoTab(this, event, "Fieldname you to go next here");

Now you need to create a document javascript.. Name it anything Ex.. "Autotab". Click on add then in the new window that opens up copy this code in it:
function AutoTab(doc, event, cNext)
{
// Call the built-in routine to allow numbers only.
AFNumber_Keystroke(0, 0, 0, 0, "", true);
// If we've filled in the field completely, jump to the next one.
if (event.rc && AFMergeChange(event).length == event.target.charLimit)
doc.getField(cNext).setFocus();
}

I found this a while ago, and it works nice, hopefully this helps....Here is the link to the example I use:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top