Enter data into both fields at the same time

This seems like it should be simple, but I can't find anything about it. I am creating a pdf form to fill out, and I need the data in a text field to appear in another text field.

Example: The form has two sections, one for the applicant to fill in for the office only. There is a field for "Address of the project" in the two sections. The customer wants the address entered in the first field to be automatically enrolled in the second address field.

How to make that happen?

If you give the two fields of the same name, they will automatically have the same value. But if you want the second field you can edit independently the first address field, you can use the custom for the first field validation script. If the second field is empty, it will set the second value of the field to the same as the first.

// Custom Validate script for text field
(function () {

    // Get a reference to the second field
    var f = getField("ProjectAddress2");

    // Set the second address field to this field's value, if it's blank
    if (!f.valueAsString) f.value = event.value;

})();

Replace "ProjectAddress2" with the actual name of the field.

Tags: Acrobat

Similar Questions

  • Copy and paste multiple fields at the same time?

    Is it possible to copy and paste several fields at the same time as in the employment history section or reference to an employment application?

    Hello Glenn,.

    You can right click on the domain and select 'Copy field' and can then slide it into position suitable in the document so that in the preview page.

    Let me know if that helps!

    Kind regards

    -Usman

  • How to get notifications on both devices at the same time, iphone and watch

    Are we able to get opinions on both devices at the same time?

    Yes, if they are connected using the same Apple-ID
    (1161)

  • Windows 7 have a split screen, I implement both programs at the same time?

    Is Windows 7 have a split-screen app? I want to implement both programs at the same time, so I can fill both applications at the same time. They are active iner. ???

    The game, 12 April 2012 18:09:36 + 0000, Richard Henry SR. wrote:

    Is Windows 7 have a split-screen app? I want to implement both programs at the same time, so I can fill both applications at the same time. They are active iner. ???

    No split screen application is necessary. Just run each application in a window, not
    full screen, reposition and resize the windows of two app so that they
    Side by side.

    Ken Blake, Microsoft MVP

  • Enter data into a field instead of several

    I have 2 text say T1 and T2 fields. Two of them requires the user to enter the family name.

    I want it if the user enters name say T1 that should be automatically displayed in T2. This avoids the redundant information entry.

    Does anyone know how to do this?

    Thank you.

    We can do this by using the global binding of the fields property.

    define mandatory fields with the same name and use as Global binding from the properties of the object.

    find the attached example.

    Kind regards

    Rambeau.

  • An Acrobat XI Standard license on both posts at the same time?

    Hey,.

    I am a bit confused, according to http://www.Adobe.com/be_en/products/acrobatstandard/FAQ.html a license on 2 PCs are OK.

    But according to http://helpx.Adobe.com/x-productkb/policy-pricing/end-user-license-agreements-FAQ.html and several discussions, I got through google a license on 2 PC are limited.

    What is this now? I need for 2 desktop PC in a company, and they don't have to work at the same time of course.

    Greetings

    If you need both facilities to be used at the same time, you must purchase two licenses.  A user license unique is exactly that, a single user at a time.

  • How can Photoshop zooms in on both screens at the same time, I fix?

    I had a second monitor connected to my Macbook. When I opened two separate documents, one on each screen at the same time and I want to zoom in to A Document, photoshop simultaneously zooms in Document B on the second screen. It's really annoying. After the update yesterday, it worked perfectly still for two hours, and now the same problem occurs. Is there a way to fix this?

    Thanks in advance

    When you have selected the Zoom tool, check on the toolbar options if the option ' Zoom all windows "is checked.

  • I can access both sites at the same time?

    Dreamweaver has the possibility to open two websites at the same time?

    Basically I have a CMS that is hosted on a server, which connects to my customer sites on other servers. I want to be able to open files on a server and change and also to edit files on a different server at the same time.

    If it is not available in Dreamweaver, then I think it should be. I often need to copy the code to a page in a site to another page to different site. For the ability to have two windows open, each connected to a site server different Web would be valuable to me. By having separate windows, each can have its own connection to the server. I don't know how that would be easy, but I like it!

    See you soon

    Glynn

    You can only connect to a single site at the same time.  And you need to change the files locally, save & then upload to the remote server.   As far as I KNOW, no unique FTP application is capable to connect to multiple servers at once.  You might be able to do what you want with open DW and some additional 3rd client like Filezilla FTP, every time you connect to different servers.

    Nancy O.

  • How to run both versions at the same time on a Mac?

    I have a setup of highly personalized FF v42 I'm happy but my Firefox version is seriously outdated and it's time to upgrade. I suspect that a lot of things will no longer work on the latest version (especially some of my old addons).

    To facilitate the transition, I want to be able to run my old version (temporarily to say a few weeks) and the latter at the same time in order to customize a new the same standard and find solutions for everything that is no longer supported, and continue to use my old install/addons until this transition is complete.

    I found this thread:

    https://support.Mozilla.org/en-us/questions/1061740

    but the solution has links that no longer work. I couldn't find anything recent on the web or youtube covering the Mac.

    I understand that the principles will be to:

    1. install the current version to a different location. Is that dragging the .app FF file to somewhere other than the Applications folder or is required as part of the installation?

    2. use a different profile for each installation. Not sure what order to do so that I do not lose my current profile (old). I guess it's to create a new profile, switch to the new profile and then install the current version, which "takes over" the new profile. Then I can go back to the former when I run my my old FF?

    Any help much appreciated.

    Installation of multiple versions on Mac OS X is basically dragging the Firefox application out of the DMG file to the desktop and rename the folder. You can drag the Firefox application folder renamed in the Applications folder as normally install you Firefox.

    You will need to use the Terminal to create a new profile for this version. Make sure that no profile is selected by default for Profile Manager to display when you start Firefox. You can check that in the profiles.ini file.

  • the volume control of the sound both play at the same time

    Hello...

    I want to separately control the volume of sounds

    I used a VI of its volume, but it reduces the volume of these two sounds,

    even if the ID of the task of both played sounds are provided separately.

    Please help me for the same...

    Thank you.

    If I'm not wrong, its volume will set the system volume. So, it does not depend on "audio files". I think so...

  • How to display data on the screen and save the data in a file at the same time?

    The code can display acceleration on the screen of the playbook.

    But, when fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ") runs, debug displays no source available.

    ??

    Does anyone know how to solve the problem, which writes data to a file?

    The code is below.

    /*
    * Copyright (c) 2011 Research In Motion Limited.
    *
    Licensed under the Apache License, Version 2.0 (the "license");
    * You may not use this file except in compliance with the license.
    * You can get a copy of the license at
    *
    www.Apache.org/licenses/license-2.0
    *
    * Unless required by the applicable law or agreement written, software
    * distributed under the license is distributed on an "AS IS" BASIS.
    * WITHOUT WARRANTIES OR CONDITIONS of ANY KIND, express or implied.
    * See the license for the specific language governing permissions and
    * limitations under the license.
    */

    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include

    /**
    The milliseconds between the accelerometer readings. It's the same thing
    * rate in which the accelerometer data will be updated
    * material. The update of material rate is below to help
    * accelerometer_set_update_frequency (FREQ_40_HZ).
    */
    public static const int ACCELEROMETER_MAX_POLL_INTERVAL = 25;

    public static screen_context_t screen_ctx;
    public static screen_window_t screen_win;
    dialog_instance_t main_dialog = 0;

    paused int = 0;

    The forces of the accelerometer
    float force_x, force_y, force_z;

    file elements
    int _logcounter = 0;
    FullName Char [256];
    FILE * f;

    /**
    * Use the PID to set the id of Group window.
    */
    public static char
    get_window_group_id()
    {
    public static char s_window_group_id [16] = "";
    If (s_window_group_id [0] == '\0') {}
    snprintf (s_window_group_id, sizeof (s_window_group_id), "%d", getpid());
    }
    Return s_window_group_id;
    }

    /**
    * Set up a basic screen, so that the browser will be
    * Send window state events when the State of the window changes.
    *
    * @return @c EXIT_SUCCESS or EXIT_FAILURE @c
    */
    public static int
    setup_screen()
    {
    If (screen_create_context (& screen_ctx, SCREEN_APPLICATION_CONTEXT)! = 0) {}
    Return EXIT_FAILURE;
    }
    If (screen_create_window (& screen_win, screen_ctx)! = 0) {}
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }
    use of int = SCREEN_USAGE_NATIVE;
    If (screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_USAGE, & use)! = 0) goto fail;
    If (screen_create_window_buffers (screen_win, 1)! = 0) goto fail;
    If (screen_create_window_group (screen_win, get_window_group_id())! = 0) goto fail;
    buff screen_buffer_t;
    If (screen_get_window_property_pv (screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void *) & buff)! = 0) goto fail;
    buffer_size int [2];
    If (screen_get_buffer_property_iv (buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size)! = 0) goto fail;
    int attributes [1] = {SCREEN_BLIT_END};
    If (screen_fill (screen_ctx, chamois, attributes)! = 0) goto fail;
    int dirty_rects [4] = {0, 0, buffer_size [0], buffer_size [1]};
    If (screen_post_window (screen_win, buff, 1, (const int *) dirty_rects, 0)! = 0) goto fail;
    Return EXIT_SUCCESS;
    in case of failure:
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }

    /**
    * Rotates the screen at the specified angle.
    *
    @param angle angle to rotate the screen.  Must be 0, 90, 180 or 270.
    *
    * @return @c EXIT_SUCCESS on success, to another @c EXIT_FAILURE
    */
    public static int
    rotate_screen (int angle)
    {
    If ((angle! = 0) & (angle! = 90) & (angle! = 180) & (angle! = 270)) {}
    fprintf (stderr, "Invalid Angle\n");
    Return EXIT_FAILURE;
    }
    int rc;
    int rotation;
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, & rotation);
    If (rc! = 0) {}
    fprintf (stderr, "error getting the window of the screen rotation: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int size [2];
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error getting size memory buffer window screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int temp;
    switch (angle - rotation) {}
    case - 270:
    case - 90:
    decision 90:
    case 270:
    Temp = size [0];
    size [0] = size [1];
    size [1] = temp;
    break;
    by default:
    break;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, &angle);)
    If (rc! = 0) {}
    fprintf (stderr, "screen rotation window for parameter error: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SOURCE_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window buffer size of the screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    Return EXIT_SUCCESS;
    }

    /**
    To manage an event of navigator.
    *
    * @return @c the value true if the application should shut down, another fake.
    */
    public static bool
    handle_navigator_event(bps_event_t *Event)
    {
    bool should_exit = false;
    switch (bps_event_get_code (event)) {}
    case NAVIGATOR_EXIT:
    should_exit = true;
    break;
    case NAVIGATOR_ORIENTATION_CHECK:
    navigator_orientation_check_response (event, true);
    break;
    case NAVIGATOR_ORIENTATION:
    {
    int angle = navigator_event_get_orientation_angle (event);
    If (rotate_screen (angle) == EXIT_FAILURE) {}
    should_exit = true;
    }
    navigator_done_orientation (Event);
    break;
    }
    }
    Return should_exit;
    }
    /**
    * Display an alert dialog box that contains the location data.
    */
    public static void
    show_main_dialog()
    {
    If {(main_dialog)
    return;
    }
    dialog_create_alert(&main_dialog);
    dialog_set_alert_message_text (main_dialog, "Acceleration to first fix");
    dialog_set_size (main_dialog, DIALOG_SIZE_FULL);
    dialog_set_group_id (main_dialog, get_window_group_id());
    dialog_set_cancel_required (main_dialog, true);
    dialog_show (main_dialog);
    }

    /**
    * Displays geolocation data in the main dialog box.
    */
    public static void
    display_acceleration_data (float force_x, float force_y, float force_z) {}
    char buf [1024];
    snprintf (buf, sizeof buf,
    "\tX: m\n % 7.3.f.
    "\tY: m\n % 7.3.f.
    "\tZ: m\n % 7.3.f."
    force_x, force_y, force_z);
    dialog_set_alert_message_text (main_dialog, buf);
    dialog_update (main_dialog);
    }

    void createafile() {}
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    {if(f==null)}
    file does not exist
    f = fopen (fullname, "r");
    {while(f!=null)}
    file exists
    fclose (f);
    ++ _logcounter;
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    f = fopen (fullname, "r");
    }
    }
    }

    write data to the file
    void writedataintofile() {}
    f = fopen (fullname, "w");
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    fclose (f);
    }

    /**
    * A sample application shows the native APIs of BlackBerry for accelerometer.
    * The example initializes and reads the accelerometer periodically until one
    * NAVIGATOR_EXIT event is received.
    Enforcement also tuned to changes status window in the browser so that
    * It can stop reading the accelerometer when the application is no longer visible.
    */
    int main (int argc, char * argv {})
    bool exit_application = false;
    /*
    * Until we can listen for events from the BlackBerry Tablet OS platform
    * services, we need to initialize the BPS infrastructure
    */
    bps_initialize();
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event). This allows to
    * us to clean up resources in the application.
    */
    navigator_request_events (0);
    dialog_request_events (0);
    /*
    * Initialize the screen so that the Windows Id is correctly set, to allow
    * dialogs to display.
    */
    If (setup_screen()! = EXIT_SUCCESS) {}
    fprintf (stderr, "Failed to initialize the screen.");
    Exit (-1);
    }
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    *
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event).
    *
    * We ask events of dialogue so that we can be notified when the service of dialogue
    * answers to our queries/requests.
    */
    If (BPS_SUCCESS! = navigator_request_events (0)) {}
    fprintf (stderr, "error asking navigator events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    If (BPS_SUCCESS! = dialog_request_events (0)) {}
    fprintf (stderr, "error asking dialog events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    /*
    * Create and display the dialog box that displays the data from the accelerometer.
    */
    show_main_dialog();
    /*
    Prior to initialize the accelerometer function, we must ensure the unit
    * takes in charge
    */
    If (sensor_is_supported (SENSOR_TYPE_ACCELEROMETER)) {}
    /*
    * If the device does not support the accelerometer so warn the user,.
    * clean in and out
    */
    public static const int SENSOR_RATE = 40;
    sensor_set_rate (SENSOR_TYPE_ACCELEROMETER, SENSOR_RATE);
    sensor_request_events (SENSOR_TYPE_ACCELEROMETER);

    }
    /*
    * Initialize the accelerometer setting the rate at which the
    * accelerometer values will be updated material
    */
    accelerometer_set_update_frequency (FREQ_40_HZ);

    /*
    Treat browser events and take the accelerometer readings periodically
    * until we receive a NAVIGATOR_EXIT event.
    */
    createafile();
    f = fopen (fullname, "w");

    While (! exit_application) {}
    /*
    * By setting the timeout to bps_get_event to ACCELEROMETER_MAX_POLL_INTERVAL,
    * We assign the maximum duration (in millis) who will wait before
    * release so that we can take a reading of the accelerometer.
    */
    bps_event_t * event = NULL;
    bps_get_event (& event, ACCELEROMETER_MAX_POLL_INTERVAL);

    If {(event)
    If (bps_event_get_domain (event) is {sensor_get_domain()})
    /*
    * We woke up. See if we are in the paused state. If not,
    take a reading of the accelerometer
    */
    If (! pause) {}
    sensor_event_get_xyz (event, & force_x, & force_y, & force_z);
    display_acceleration_data (force_x, force_y, force_z);
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    } //paused
    }
    / * If this is an event of the dialog box, determine the response code and handle
    * the event accordingly.
    */
    {ElseIf (bps_event_get_domain (event) == dialog_get_domain() {)}
    ;
    }
    /*
    * If it's a NAVIGATOR_EXIT event and then set the exit_application
    * indicator so that the application stops processing events, clean and
    * output.
    */
    {ElseIf (bps_event_get_domain (event) == navigator_get_domain() {)}
    exit_application = handle_navigator_event (event);
    }
    } //if event
    } //while
    /*
    * Destroy the dialog box, if it exists.
    */
    If {(main_dialog)
    dialog_destroy (main_dialog);
    }

    fclose (f);

    /*
    * Clean the infrastructure bps and output
    */
    sensor_stop_events (SENSOR_TYPE_ACCELEROMETER);
    bps_shutdown();
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    return 0;
    } //main

    Hello

    As I said on your other thread:

    In order to write in the shared directory/documents, your application should request action "access_shared" and it must be granted by the user. Make sure you have

    access_shared

    in your bar - descriptor.xml.

    Also note that the shared documents folder may not be the best place to write the application log data. There is one connects / in the sandbox to this effect, or the application directory data / directory if the information should be persisted. The documents/shared/folder is designed for documents that the user creates or interacts with.

    HTH,

    Christian

  • Code to not allow text to field two fields at the same time

    Hi guys,.

    I would like to ask for your help on a JavaScript code.

    I don't have much experience with JavaScript and I am trying to add a code for a pop up to warn the user that only one field must be filled.

    In the form, there are two main types of fields and the user must only fill one of them and not the two of them.

    Is there a way to add a code to each text field to alert the user of this single text field to fill?

    In the first text field, you can use a custom like this validation script:

    Script for custom text to validate field

    If the entry is not empty...

    If {(event.value)

    Refuse entry if the other field is not empty

    Event.RC =! getField("Text2").valueAsString;

    Display a pop-up message if the entry has been rejected

    If (! event.rc) {}

    App.Alert ("error goes here.", 3 ");

    }

    }

    but replace "Text2" with the name of the other field. Use the same validation script in the other field, but change the name of the field for the name of the first field.

  • A single button; Two jobs. Submission of data and e-mail at the same time.

    I have a FORM on which the current action validates the form and submit the text to a MYSQL database:

    < form action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" onSubmit = "MM_validateForm ('ck_firstname',", "R',"ck_lastname', ", 'R', 'ck_email3',", "come from mail"); " return document. MM_returnValue">

    I wish that submitting to warn me, by email, that the entry on the database was created.  I can do it from the same page or is happening from the page, as a result. If it is necessary to move to another page to send email I would like this page to automatically redirect to the page of the FORM, so that the page emailling is invisible. Possible?

    Also, I should move the current action of PHP to the next page, so that the button on the FORM simply publishes on the other page that realizes both the presentation of the database and the emailling?

    Advice or code received with gratitude.

    I wish that submitting to warn me, by email, that the entry on the database was created.  I can do it from the same page

    Yes. It is to modify the code generated by Dreamweaver, so the server behavior insert record ceases to be editable through the Dreamweaver dialog box. All that is necessary is to add the e-mail script after the record has been inserted in the database. You can add the script physically in the same page or use include a PHP. Remember that PHP scripts are processed from top down. Keep everything in the right order, and it's a piece of cake.

  • FF has an option for AutoComplete is a form all like Google, or full auto work only on one field at the same time?

    Is there a way of really auto complete a form in FF the way Google, or is full auto only one field both in FF?

    You can watch an extension as Autofill Forms.

  • Acquisition of data ongoing and finished at the same time

    I have a reading program in the measurement of the temperature of thermalcouples and I currently have my system set up to take a finite number of samples.  During the acquisition, I am unable to see the data in the front panel and I want to put in place a way to visualize a graph of continuous for my data waveform is sampled so I can look to find errors.  Is there a good way to do this?

    You cannot view the data until it was acquired. It is the programming of the acquisition that is at fault. If you want to see it sooner, change the number of samples or the sampling frequency. With a graphic instead of a chart, you can simply change the number of samples and get a continuous display.

Maybe you are looking for

  • A40 Microphone

    How can I get the internal working microphone or an external microphone. Is the external phantom power or not. Its getting very annoying being not able to Skype my friends all over the world.

  • can not find organize bookmarks

    I had to reinstall Win 7 and FF. But I can't find the bookmarks to organize it. It was in the previous entry (I have benn using FF since it began.

  • Photosmart d110 printer: Photosmart d110 printer will not connect to Google Cloud Print, can't get printer e-mail address

    To begin with, Yes, I searched HP and FAQS forums for an answer before you hit this place. And Yes, I have turned off and back on several times (the wireless and the printer itself). OK, so I just bought an ASUS Chromebook and I tried to connect my H

  • Install Windows 7 on a new partition

    I have a Satellite P300-19F and it came with Win Vista. I am trying to install Win 7 on a new disk volume, but I do not have the Toshiba provided with equipment programs (software for webcam, DVD, etc.).Where can I download all software from Toshiba?

  • E1200 won't save reserved IP.

    Hello I have DHCP enabled on our E1200. I had a conflict with the 192.168.1.112 used by 2 PC. I need the reserved 192.168.1.112 because it works our dashboard. I set it statically to the PC. I'm trying to reserve the IP and MAC address on the router