Rowby Goren
asked on
Turning off Text Field Property dialog box
I am using Acrobat Professional 6.0 and making forms.
Is there any way to turn off the Text Box Properties box that pops up everytime a new text box is created (ditto for other types of form fields).
I am using the default settings and clicking to create the field,and would like to avoid having to always close that Properties dialkog box.
Thanks
Is there any way to turn off the Text Box Properties box that pops up everytime a new text box is created (ditto for other types of form fields).
I am using the default settings and clicking to create the field,and would like to avoid having to always close that Properties dialkog box.
Thanks
ASKER
Thanks for the "C" key suggestion. That will help.
I'll award the points tomorrow -- Do you know where I could find a javascript program that would create these text boxes -- that would be even better!
ROwby
I'll award the points tomorrow -- Do you know where I could find a javascript program that would create these text boxes -- that would be even better!
ROwby
You need to write the JavaScript :-) If you can give me some time, I will come up with a simple example.
ASKER
Sure take as much time as you like :) You'll get the full points here, no matter what.
Rowby
Rowby
Use the JavaScript debugger for the following tasks. You can find the debugger under Advanced>JavaScript>Debugg er (or Ctrl-J). Once the debugger dialog is open, you need to copy&paste the JS code into the debugger window. The debugger will execute code that is selected with the mouse when you use the "Enter" key on the numeric keypad. The normal Enter key will _NOT_ work.
You need to first set the initial value for the text field name. This starts with "Text1", and the number part gets incremented with every new field that you create. By default, this routine will create 10 fields per run. Make sure that you set the variable textFieldNum only once per document. If you revisit an existing document, you need to set this varialbe to the first new value that can be used for a text field name (e.g. if you already created 30 fields, set it to 32). The text fields are created on top of each other in the upper left corner of your current page. You can use the "Select Object" tool to move and resize the text fields.
// Select the following line _ONCE_ per document and hit the "Enter" key on the
// numeric keypad. You can also set the starting value to something different than "1".
var textFieldNum = 1;
// Select the following Javascript code and hit the "Enter" key on the
// numeric keypad once for every ten text fields you want to create.
// You can modify the location and size of the text field by modifying the
// aRect[] values
// get the current page
var pageNum = this.pageNum;
var inch = 72;
var aRect = this.getPageBox( {nPage: pageNum} );
aRect[0] += .5*inch; // 1/2" from left edge of page
aRect[2] = aRect[0]+.5*inch; // Make it .5 inch wide
aRect[1] -= .5*inch; // 1/2" from top edge of page
aRect[3] = aRect[1] - 24; // make the text field 24 points high
var i;
for (i = 1; i <= 10; i++)
{
var name = "Text" + textFieldNum++;
var f = this.addField(name, "text", pageNum, aRect )
}
// end of code
If you like this, we can make it even more streamlined by "hiding" it behind a menu item.
You need to first set the initial value for the text field name. This starts with "Text1", and the number part gets incremented with every new field that you create. By default, this routine will create 10 fields per run. Make sure that you set the variable textFieldNum only once per document. If you revisit an existing document, you need to set this varialbe to the first new value that can be used for a text field name (e.g. if you already created 30 fields, set it to 32). The text fields are created on top of each other in the upper left corner of your current page. You can use the "Select Object" tool to move and resize the text fields.
// Select the following line _ONCE_ per document and hit the "Enter" key on the
// numeric keypad. You can also set the starting value to something different than "1".
var textFieldNum = 1;
// Select the following Javascript code and hit the "Enter" key on the
// numeric keypad once for every ten text fields you want to create.
// You can modify the location and size of the text field by modifying the
// aRect[] values
// get the current page
var pageNum = this.pageNum;
var inch = 72;
var aRect = this.getPageBox( {nPage: pageNum} );
aRect[0] += .5*inch; // 1/2" from left edge of page
aRect[2] = aRect[0]+.5*inch; // Make it .5 inch wide
aRect[1] -= .5*inch; // 1/2" from top edge of page
aRect[3] = aRect[1] - 24; // make the text field 24 points high
var i;
for (i = 1; i <= 10; i++)
{
var name = "Text" + textFieldNum++;
var f = this.addField(name, "text", pageNum, aRect )
}
// end of code
If you like this, we can make it even more streamlined by "hiding" it behind a menu item.
ASKER
Hi I like it! I like it!
Can you do the next step by "hiding" it behind a menu item????
No hurry. I won't even be back at my office until Weds -- and there is no real deadline.
Rowby
Can you do the next step by "hiding" it behind a menu item????
No hurry. I won't even be back at my office until Weds -- and there is no real deadline.
Rowby
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi I'm going to the office today and will try it out and look forward to awading you the points for your great help!
Thanks
Rowby
Thanks
Rowby
ASKER
Hi Works great. I see how easy it is to modify the javascript so I can use this for all kinds of form uses.
Appreciate it, and here are your well-deserved points!
Rowby
Appreciate it, and here are your well-deserved points!
Rowby
You can download the JavaScript reference from Adobe's web site if you want to do more than just a few straight forward modifications.
If you know how many text boxes you need, you could also write a JavaScript program that creates them for you, so that you can then use the "Select Object" tool to move them to their correct location on the page.