Copy the field to another field

I'm putting in my pdf form to copy part of a field to another field. For example, the user will enter ' London 10000 "(10000 étant le code postal) in field 1 and I want to only copy the word London in field 2". my code does not work

var a = this.getField ("First_field");

index = one.indexOf("");

var length = one.length;

If (index! = - 1).

{

a = one.substring (index, length);

}

var two = this.getField ("Second_field");

two = one;

Try this:

try {}

var oneVal = this.getField("ZIPCODE").value;

If (oneVal.contains(""))

{

I have = oneVal.indexOf("");

var l = ((oneVal.length - i));

var twoVal = oneVal;

i = i + 1;

twoVal = twoVal.substring (i, (oneVal.length));

oneVal = oneVal.substring(0,i-1);

{if (IsNaN (oneVal))}

this.getField("CITY").value = oneVal;

} else {}

this.getField("CITY").value = twoVal;

}

App.Alert ('oneVal =' + oneVal);

} else {}

{if (IsNaN (oneVal))}

this.getField("CITY").value = oneVal;

} else {}

};

};

} catch (e) {}

{if (IsNaN (oneVal))}

this.getField("CITY").value = oneVal;

} else {}

};

};

Tags: Acrobat

Similar Questions

  • copy the content to another using the checkbox text area

    Hello
    I have a form that contains 2 fields (text box)
    Current address and permanent address

    If the addresses are the same then user only on a check box to copy the contents of the current address of permanent item field.

    I'm no JavaScript expert, but this works for me.

    http://Apex.Oracle.com/pls/OTN/f?p=579:22

    This example contains two text boxes: P22_TEST1 and P22_TEST2 and copies when you click on the check box.

    To create this:

    In the page attributes define the HTML header

    
    

    in the box set the Form HTML element attributes

    onchange="copyItem('P22_TEST2')"
    

    I hope that helps

    Shunt

  • When I copy the files to another drive I lose sight that I put in place

    I have a folder of music with MP3s set up for show, track, year, artist, Album name, duration, and then sorted by Album title and show in groups.

    When I try to copy these files to a different drive (such as a backup copy), they lose that point of view I have Setup and it wou; d take me a long toime to reset the points of view for all folders is not good.

    Hello

    When copy you it to another drive, it will take the default order of windows.

    For reference:

    http://support.Microsoft.com/kb/306554

    http://support.Microsoft.com/kb/812003

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756 /) how to back up and restore the registry in Windows

  • Copy the settings of another first Pro CC synchronization account?

    Hi all

    How can I copy my personal account sync settings adobe account of my work? I'm under first cc v9.2. These settings live anywhere on my computer, I could just copy in a different folder, or everything is done through the cloud? Thank you.

    The command "settings of another user" will do just that, it will eliminate your current settings with those of another user; you don't want to do. You simply want to leave the first sign of your account from the CC application and connect with your professional account. All this will do is change who the software is licensed for the moment, it will not change your settings. Then, because your settings will be the same as they were with your personal account, you simply open first and synchronize your settings to the cloud. If you have no existing parameters with your professional account then first do you that if you want to upload or download, it will simply download your settings. If you want to be sure you can back up your "profile-CreativeCloud' and the 'profile-"username"' folder on your desktop so that you can experiment without worry of losing your settings. If something goes wrong, you can simply copy the files back to your Documents folder. After all this is done you can reconnect you to your personal account. I do it regularly at home, but I go the other way. I disconnect from my personal account, log in to my work, download settings, new sign in my account, and then for good measure, I download these parameters to the cloud.

  • How to copy the values to another scene lighting effects

    Cs6 pro working, how can I copy the effects emna values to the next scene? The scenes are long from 5 to 10 seconds and I was reset values of scene by scene lighting effects. Is it possible to copy the values from one scene to the next?

    Normally, copy 'Effect' to clip and paste to the other will work just fine.

  • Acrobat Pro XI, I want to automatically copy the field name in the ScreenTip for that field for all the hundreds of fields in a form

    Can someone tell me how to proceed?  Thank you.

    You can do this by using this code:

    for (var i=0; i		   
  • Copy the calendar to another calendar events

    I have a calendar on my PC with some events in private. I recently added in a radical opposition based calendar hosted on my network. Now, I try to copy my own calendar events in this calendar on the Web, but I can't make it work properly. When I select a calendar, select events and the copy, and then select the other calendar and deselect the old one and paste it, it ignores the selected calendars and just puts it into my old.
    But when I disable (not only unselection) my only old and paste then, it sticks the events in the new calendar. But their info is messed up, he turns off the names of most of the events, and even the times are not correct, seems as if the Yearnumber was put at 55 in the future for some strange reason.

    Is it possible to correctly copy a bunch of events to another calendar in lightning?

    Right click on the calendar in the left pane - private export.
    Save it as an .ics file.

    Then import the saved file:
    Import events and tasks (Alt - N)-

    You will be asked for the target calendar:
    Which calendar you want to import these items in?

    See if it works better.

  • Copy the contents of the text field to another text field

    Hello world

    I'm new in the world of LiveCycle. Therefore, please excuse these stupid questions (?).

    I'm trying to create a form. This form has three pages at the moment. On the first page, the user must fill a number of services.

    How can display this number of service on the following pages?

    I read something about JavaScript and FormCalc. Is there a manual for beginner? A manual or a good how would be great because I have more question and does not usually bother forum that much. for example, ist is possible to hide a 'Kontrollkastchen' (English control box?), when an another Kontrollkastchen is not checked? Something like a "IF box A THEN not true to hide the B.

    Concerning

    Dennis

    Thorlabs HL

    Hi Dennis,

    Your question is very valid; you know what you want the program to carry out, it isn't just get to do.

    You can do without a script. If you copy the field on every page, you can set the binding to "global". This means that all the fields with the same name of object will have the same value.

    If the object is going to be in the same place on each page, you can place the object on the Master Page.

    Some resources are in this tread: http://forums.adobe.com/thread/427826?tstart=0

    Also have a look at the help file to configure your workspace...

    Good luck

    Niall

  • Can I copy a field and lock the 2nd copy?

    I have a form with the contact information on the first page (e.g. name), then because the shape is 17 pages long, I want to show automatically (page one) name field in the header of all pages.

    I tried to copy the field and locking on other pages but it blocks on the contacts page.

    A script can do this? I am familiar with the use of javascripts, but not their creation.

    I guess this would be a field of saying script 2 (3, 4 etc) = field 1, then make 2 (etc.) read-only on the ground?

    Using Acrobat Pro DC in windows 8.1

    With the help of the event about the blur is not ideal. Use the Validate the first field event instead, and the code might be:

    Custom validation script

    getField("Text2").value = event.value;

    The other approach is to use a calculation script customized to fields read-only:

    Custom calculation script

    Event.Value = getField("Text1").valueAsString;

    The difference is that the calculation script will be triggered whenever any field value changes, while the validation script will only trigger when the value of Text1 field. Replace Text1 or Text2 with real field names.

  • Can I copy the recovery files to another partition D?

    Hello

    My drive came with C and D partitions, but I want to organize my partitions of different drive from the factory.
    I want to slightly reduce the system (C) partition, create a partition to 15 GB, copy the files from recovery to there (to keep the recovery files isolated) and rename this partition as the new D drive.
    The only thing that matters for the tool recovery work is to place the files on a partition of D?
    Has anyone done a thing?
    Will it work?

    Hey,.

    To be honest I have don t think that HDD recovery works if you copy the files to another partition.
    Why you want to do this?

    I use the factory form C: and D: partition by default. On C:, I installed all my programs and on drive D: I saved my files private photo, music, videos, Documents, etc.

    I don't see any reason to create a separate partition for HARD drive recovery files because they are saved in an additional folder.

  • How to make a 'yes' or 'no' radio button in a single page and "sync" the two to another page?

    Hello

    How the option button mirrored the choice made on page 3 of the 10 page? Thank you.

    Page 3:

    Page 10:

    Simply copy the fields from one page and paste them into the other. Just do

    of course, you check the option that says "buttons with the same name and choice".

    are selected in unison"under properties, Options tab.

  • SQL to copy one table to another

    Using Oracle with c#.

    I have two tables

    TABLE1:
    ID,
    name,
    attribute

    TABLE2
    ID,
    name,
    attribute

    I need to copy the fields name, attribute of all the rows in TABLE1 into TABLE2 where name =: name,.

    However when you do what I must also define all fields being copied into TABLE2 id to: id (this constant rest value in all areas that are copied and will be stored in a variable binding).

    So if: id = 1000, regardless of their value as in Table1.my_field is, all rows are copied into TABLE2 will be the id.value of 1000.

    I know I need something like

    INSERT INTO TABLE2 (id, name, attribute) SELECT (id, name, attribute) FROM TABLE1 WHERE name =: name

    But just need to get this id value to set.

    It really comes down to write the SQL code for you what yo want.

    Insert into table2
    Select 20, name, attribute from table1 where name =: name_bind;

    The value default ID to 20 during the copy only lines that has a name in the name of the binding variable.

    Without bind variable, it would be

    Insert into table2
    Select 20, name, attribute from table1 where name = "Name1"

    Please use bind variable if it is run more than once.

  • How to copy a macro in another iMac?

    Hello!

    I made a macro (in photoshop CC 2015) to my MacBookPro and would also like to use it in my iMac

    -If the macro can be copied/sent from one mac to another?

    Thanks in advance!

    BR

    -minna

    Hello

    Can you be more explicit? Are you talking about an Action or another kind of Automator?

    For stocks, in general:

    1. open the Actions tab.

    2. each of your custom action belongs to a set. Move to the top of the list until you find the whole. It will be a 'folder' icon and an arrow pointing down, showing that it is open. The default set is labeled 'Actions by default'. Click the folder to select it.

    3. at the top of the actions palette, there is a small arrow. Click it to display a menu of options. Choose "Save Actions" and save the file to your desktop. Call it something meaningful.

    Now, copy the file to another computer. Place it in a folder related to Photoshop, such as Presets > Photoshop Actions folder.

    1. click on the small arrow in the actions palette, and then choose "Load Actions". Choose the file that you saved earlier. It will be added as a new value to your palette of Actions and should be available every time.

    Note: If you have copied to certain actions you don't want with your expensive custom you can simply remove these overall once you have loaded on your other computer.

    Stone

  • Can I copy the contents of a form field to another field with toggle checkbox?

    Would it not possible to copy the contents of a form field to another field in the form once a checkbox is disabled?

    I have several form fields that require form-fill to enter their initials.  Rather than repeat this 20 - 30 times on a form, they would like to be able to write their initials somewhere and that their initials copy in another form with a checkbox Toggle field.

    So, I have a field called 'initial' and each of the original boxes are "init_entry1" "init_entry2" etc.

    The boxes for these areas are "check_entry1" "check_entry2" etc.

    This would be possible with scripts?  Or are there better ways to accomplish the initial AutoComplete with a checkbox toggle?

    You can use a code like this in the MouseUp event of your box:

    If (getField("Check_Box1").value! = "Off")

    getField("Text2").value = getField("Text1").value;

    else getField("Text2").value = "";

    Of course, you have to adapt the names of the fields.

  • Copy the default value from another field in the same page

    Hello

    I need to pass a value from one page to another page and I want to use this key as DEFAULT VALUE for a field.

    If I create a form tabular all it's ok, but if I create a normal page. I am not able to do that.

    1. 1. I call the page and I pass the value. I also have a FIELD of VIEW and I can see the correct value.
    2. 2. I create a field with attributes of this:
      1. a. source > Source = database column type
      2. b. sources > Source value or expression = FK_ID_DA (the column name)
      3. c. default > default = P27_PK_ID_DA (the field that contains the value)
    3. 3. on the screen, I see P27_PK_ID_DA and not the value

    Where is the error?

    Thank you very much

    TexasApexDeveloper wrote:

    You missed one: before the variable, without it, the default value is the string...

    Not sure that you can READ the other pages... Such that if you are on Page 27 and have a field that you want to use on page 30, page 27 is presented and its items in session state, you can 'see' on page 30.

    So, if you set the default value: P27_PK_ID_DA, then you should get by default, you are looking for...

    Only if the default value Type is set on the PL/SQL Expression. If the literal value "P27_PK_ID_DA" is seen then the Type of default value should currently be set static text with Substitutions of State of Session, in which case the value of session state must be referenced using the syntax of substitution string:

    &P27_PK_ID_DA.

Maybe you are looking for