Set the focus on the specific field when the form opens

I use Acrobat Pro XI.  I would like for a specific domain focus when the form is opened.  Is there a form parameter or the Javasprict that should be used?  Where add Javascript code so that's the direction I must go?  Thank you.

Yes, it can be done using a script. Go to tools - JavaScript - Document JavaScripts and enter this code (adjust the name of the field as your file, of course):

this.getField("FieldName").setFocus ();

Tags: Acrobat

Similar Questions

  • I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    Yes, this is a common problem. Use the SPACEBAR to toggle individual mailboxes.

  • Can someone help me with a Code that allows you to hide all but the first few fields when the form opens

    My form has a section (subform) on top that is always open and then underneath it is dynamic and I want some subforms and sections to open based on users to input. I use action Builder to open the screen and have all the fields that are hidden, but I have too much subforms and must hide individually all subforms. Is there a code that allows you to hide all fields for me when the form opens, and then I can use action Builder to open just what I need based on a drop-down list button or radio?

    Thank you!

    Hello

    Using LockAllFields of Paul's example, you could place the JavaScript code within the root node docReady event (normally 'form1').

    Please note that the last line is the presence of one of the subforms to visible return. Let's call it ShowThisSubform.

    // Declare some variables
    var allChildElements;
    var intNumElements;
    var currentElement;
    var j;
    
    // Get all the child nodes of the parent element (the root node/"form1")
    allChildElements = this.nodes; // "this" will use the element where the script is placed
    
    //Total number of element in the object
    intNumElements = allChildElements.length;
    
    // Loop through all the child elements
    for (j=0; j< intNumElements; j++) {
         currentElement = allChildElements.item(j);
         // If the element is a subform we'll hide it
         if (allChildElements.item(j).className == "subform") {
              allChildElements.item(j).presence = "hidden";
         }
    }
    
    // Show one of the subforms
    ShowThisSubform.presence = "visible";
    

    Niall

  • After you download the latest version, I lost the familiar logon page and bookmarks is not displayed. How to restore the former opening page Firefox? For the moment I can not navigate at all.

    The Firefox window is not displayed at the top of the page. Therefore there is no Tools menu that I can't tell which version of Firefox, I downloaded as "about Firefox" is not displayed. I downloaded it last week so I guess it must be the 6.02

    Make sure that you are not running Firefox mode full screen with all the hidden toolbars.

    • Press F11 to toggle mode full screen (file/Firefox > fullscreen)

    If the menu bar is hidden, then press the F10 key or hold down the Alt key, which should make the convening of menu bar.

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible: "view > toolbars".

  • Setting the focus to a specific index

    Let's say I'm a manager of vertical field with 5 buttons fields. Is it possible to move the focus to a specific field click?

    For example, clicking on the 2nd button will move the focus to the 4th button. Possible?

    Yes, you can set the focus...

    Try this...

    ' Public Sub fieldChanged (field field, int context)
    {
    If (MyButtonField instanceof Field)
    {
    If (Field == VFM.getField (1))
    {
    (VFM.getField (0)) .setFocus () (ButtonField);
    }
    }
    }

    This will focus on the ground in the 1st row on the click event of the button 2nd...

    Similarly, you can write changeListner event for all fields.

  • How can I change the status to "Enabled" to a button when a user of data changes in a field on a form?

    On my page of form, I have 3 buttons marked: commit, Undo, done respectively.  When the form opens, popuplated with the data, the validation buttons and cancellation are disabled (designed in this way in design mode).  When the user changes the data in any field, I would like the "Done" button become disabled and the validation buttons and cancellation become activated.   How can I 'say' Commit and Undo buttons become enabled on data changes?


    Once the data in the database, how can I say the validate and Cancel buttons to become disabled and the "Finished" button to become new activated?

    Thanks in advance.

    Create a Boolean variable can be bound to the form page say [Bindable] private var formChanged:Boolean = false;

    set this value to true in the events of changing one of the fields of the form input.

    State of active buttons can be linked to this Boolean property like this

    Once the data in the database, the value of the false formChanged

  • Impossible to get Javascript to fill in the fields on the form.

    I am very new to work with Javascript. I am tempted to reverse enginer a script that fills the form fields in a separate document when it opens. The scrpt is triggered using a button. The form opens without Ant problem. Here's the script. It is also possible that there is a problem of formatting with PDF Forms.

    I work with Adobe Pro 8.

    var a = this.getField("Mug").value;

    var b = this.getField("Key").value;

    var c = this.getField("AgncCas").value;

    var d = this.getField("Mfirstname").value;

    var e = this.getField("Mlastname").value;

    var suppDoc = app.openDoc ("supp.pdf", this);

    suppDoc.getField("Mug").value = a;

    suppDoc.getField("Key").value = b;

    suppDoc.getField("AgncCas").value = c;

    suppDoc.getField("Mfirstname").value = d;

    suppDoc.getField("Mlastname").value = e;

    suppDoc.getField("Mug").setFocus ();

    suppDoc.getField("Key").setFocus ();

    suppDoc.getField("AgncCas").setFocus ();

    suppDoc.getField("Mfirstname").setFocus ();

    suppDoc.getField("Mlastname").setFocus ();

    Any suggestions would be greatly appreciated.

    In Acrobat XI you place under Tools - JavaScript - Document JavaScripts.

    Create a new item, delete all the default text in it and paste the code I

    provided instead.

    Not sure what the point where is in Acrobat 8...

  • Verify the existence of the form field

    Hello

    How to test, using JavaScript, if there is a specific field on a form or not?  I tried the following, but not enough work:

    If (xfa.layout.absPage (pg1.sfCap.sfCapLeft.Table2.Row2) == - 1).

    {

    }

    Note: For the form where I tried this, the Row2 is not at all

    Thank you!

    The function resolveNode (see http://help.adobe.com/en_US/livecycle/9.0/designerHelp/001395.html) can be used to retrieve the value of a specific node in a table row. You'll still need to determine the number of lines and iterate over instances of row of table in conjunction with resolveNode().

    Steve

  • How do you reduce the form field box?

    I added a form on my contact us page (contact us) but the invisible area 'live' form exceeds by far of the true purpose of the form, after the submit button. For this purpose, it's bumping into my footer area. The footer must be aligned with the bottom of the picture to the left. Thank you!

    Select the form, open the States Panel, activate the various States and you will certainly see why!

  • JHeadstart - how to configure the form to be modal window in the style of table-form available?

    JHeadstart release 11.1.2 Relase

    When you use the Application JHeadstart Editor, I chose "table-form" style of layout for the field.

    Issue. When the field editing either way, by clicking on the edit button, which will be the user to the form, is it possible to have the form opens in a modal window?  If Yes, where and how configure this option?

    Summary: currently, the flow is as follows: field displays in a table.  The user clicks on the button Edit and screen refreshes the field in a form.  What I want is to have the form to be displayed as a modal window with the table in the background.

    Thank you.


    I think you could do this with 2 different versions of the JHS group.  A configured as 'table' and set up the other as a 'form '.  Then, add a groupLink item in the table to open the form in a modal popup.  (you might even be able to link the group to itself, but then you will need to do some adaptations to prevent it to generate the default table-form link)

  • Adobe Reader does not allow signing the form?

    I created a form with Adobe LiveCycle Designer with a number of fields of digital signature. When the form opens with Adobe Reader, it does not allow for signatures to be completed it shows an error message «to avoid the security settings on the document, adding text and/or by placing a signature on it since Adobe Reader»

    What did I do wrong?

    You probably just drive - activate the form. You can do this with Acrobat or LiveCycle Reader Extensions.

  • Fast when password to open a PDF file

    Using Acroform, I am able to create a PDF file that push for a password when someone open the file (double click)

    Is it possible to create this type of functionality using LiveCycle Designer ES

    Thanks in advance,

    Meyke

    Hello

    When you have the form open in the LC Designer, go to file / form properties...

    The PDF Security tab allows you to check to force the user to enter a password to open the form. If you tick this then the next time that you save the file, you will be asked to set the password. When users try to open the form in Acrobat, they must enter the password.

    Note the second option sets a password to open the form in the designer of the LC. If you do not set this password, so a user can bypass your password by opening the form in LC, deselect the required password and disabling passwords. Have a read of the help file for more information.

    Good luck

    Niall

  • Set the focus on the phone number field when validation fails

    Hello

    I have a text field set up like a field of phone number, with the following text in the change event to accept only numbers:

    if(xfa.event.newText.match(/[^0-9]/)){
    xfa.event.change = "";
    }
    

    The validation of the model, I have this mask on all tabs (display, editing, Validation and data):

    Text {'('999') ' 999-9999}

    I want the user to be able to just enter numbers and have the parentheses and added automatically dash ["123-456-7890"].


    How the focus to stay on the field when it is not validated? (e.g., insufficient or too many digits).  I have looked at validationState , but couldn't find out how to use it (I am a javascripter noob).

    Thanks for any help.

    in the case of output of your domain:

    if (this.rawValue.length !=9) xfa.host.setFocus(this);
    
  • Focus / Unfocus spoils the fields when using custom fields - help

    Hello

    I hope someone can help me with a problem I see with a screen that contains a VerticalScreenManager that contains a number of custom HorizontalFieldManagers, which each contain a LabelField and an EditField.

    Note: I use a HorizontalFieldManager customer so that I can use sublayout to field possible as I need.

    The purpose of the screen is to allow the user to scroll through the fields and on the focus on the areas of editing.

    However, as the user rolls and fields in bulk and get focus, 'development emphasizing' is not 'cleaned' of previous field and so he is spoiling: several fields have the "update highlighting.

    I saw several other similar topics in the forum but nothing quite the same thing.

    Screen

    -Vertical area Manager (standard)

    -(Custom) HorizontalFieldManager - LabelField - EditField

    -(Custom) HorizontalFieldManager - LabelField - EditField

    -(Custom) HorizontalFieldManager - LabelField - EditField

    It seems that when the scrolling HorizontalFieldManager becomes and lose focus, but do not repaint itself? Is this possible?

    I use OS 5.0.

    Thank you very much

    David

    It seems that the problem was the VerticalFieldManager had not the color of the sae background as areas that are part of it and so when the focus and unfocus painted the background color VerticalFieldManager was painted, I don't know why this has been, and if it's a bug in the OS 5.0, but when I set the background color in the VerticalFieldManager I don't see the problem.

  • How to set the initial focus to the second field?

    Hello

    I created one for the user to enter data.
    The first field of the form has a default value.
    Therefore, when the screen is rendered, I would like to put the cursor in the second field for the user to enter data.

    How can I do this?

    Thank you

    Gabor

    Ahh and now for points...

    Set the display of Page attributes > focus cursor "do not carry the cursor".

    This allows your javascript to run.

    Gus...

    You can reward this answer by marking as being useful or correct ;-)

Maybe you are looking for

  • BP-688e67d3-43C5-4B11-97e0-52d782141108

    I did not notice when it really started. Firefox starts in SafeMode only. If I closed firefox or restart my firefox to system cannot be started in safe mode. Reset cause firefox crashes. I updated firefox, my windows system and my Add ons.

  • Stop firefox update

    So more updates stop functionality of addons, I NEED every DAY! I would rather ONLY UPDATE AFTER MY NECESSARY ADDONS ARE COMPATIBLE. Except that IE is as functional as Firefox. Without functioning addons Firefox is useless. Please allow us (the user)

  • Iconia a210 jb 4.1.1. freezes often

    Iconia a210 jb 4.1.1 My tab often freezes for 0.5-1.5 sec Even now, when I'm writing tis post :-( I have always close unused applications and clearing cache and memory... It's very frustraiting :-( Please advise... [word filter avoidance]

  • I can't erase the updates of windows

    I have windows xp sp3 home edition on a viao older sony with only 2 GB of memory on drive c to begin with, my current c drive has about 1% of free space memory. I've deleted or moved all non essenital programs on my d drive, is all that's left on my

  • I get the message of low disk space. I bought a 1 TB external hard drive and I want to know how to see what fills my c drive.

    I have a laptop.  I need the computer for class of models. I have the elite external hard drive WD book.  I just want to know how to find out what fills my disk c. I have a lot of pictures.