Validate or calculate one text field in form

I have a form (several pages long) which has the same text field name on each page.  I have to have the same text field name as it is pulling the information from another source.
Example:  Page 1 has text field FormValues.accountNames_1
Page 2 has the same text field. 
I want to do two things really
Seperate the fields so they are not really linked.  The script will fill in the fields from each page seperately from the javascript inside the program
I will try to show example as I know I will not explain well
Page 1
Sponsoring Members
FormValues.accountNames_1
FormValues.accountNames_2
FormValues.accountNames_3
All sponsoring members listed on page 1 will automatically be signing authorities.They will prefill in from the web program.  Staff are to delete those prefilled names IF one of the signors is not to be a sponsoring member.  Lets say the person that fills into FormValues.accountNames_3 is deleted by staff from page 1
On page 2 we set up account authorization
So again there is a list of signors
FormValues.accountNames_1
FormValues.accountNames_2
FormValues.accountNames_3   
For each of these I need to tick if they are an Authorized Signatory or Authorized User
At present, if I delete out accountNames_3 on page 1 it also deletes out accountNames_3 on page 2.  I do not want that.  I want them to be mutually exclusive.
I then want to state that IF accountNames_3 IS NOT listed on page 1, then tick the box Authorized Signor
Is there anyway to do that in Adobe PDF (not LiveCycle)
Any help would be appreciated
Thanks

You can't "separate" fields that have the same name. They will automatically have the same value, always.

Similar Messages

  • Form Size with one text field 442kb

    I started work on a new version of a three page dynamic form because the old version was 1,537kb.
         After setting up my new blank master pages (3), I placed a text field on the blank "cover page". The from size went from 12kb to 442kb with one text field. How can one small text field with no caption increase the file size so tremondously. That's a factor of 36! Any suggestions? I am using:
    Microsoft Windows 7
    Adobe Acrobat Pro X 10.1.6
    Livecycle Designer ES2 Version 9.0
    FYI: I have read that there exists some tools out there to inspect your pdf/xml and see what objects are increasing your file size. This would be very helpful, however I work for a company that gives very little freedom in downloading unapproved software. So unless there is an Adobe way to inspect for an object and its impact on size, I am in a tough situation. Thank you for your time.
    https://workspaces.acrobat.com/?d=H06NjDMAiTS79khuQCoKKw

    Remove the embed fonts feature to reduce your file size:
    File > Form Properties > Save Options
    Old version file size went from 1,537kb down to 132kb

  • How can i validate current row input text field like required.

    Hi All,
    jdev 11.1.2.1.0
    in my use case i have drag drop one viewobject as a adf table. and in table i have also add one extra input text field which is not based on
    vo.
    now i want to validate current row input text field not null when i commit row.
    but when i using required property true. it worked for all row in table. problem is that i want only current row input text field validate not all
    thanks,
    Manish

    When the user tries commit the data by clicking on the button -- For that button, have the logic in the actionlistener method to check if the additional input field is NULL or NOT.
    If it is NULL, show an error message using FacesContext.addMessage() API.
    Thanks,
    Navaneeth

  • Report error when using combo box and one text field is empty

    I'm building an interactive pdf in adobe pro 9. My problem is the following: I have one text field where you can enter a numeric code and that is used to populate another text field when I choose an option on one combo box.For example: suppose I write the code 123 in the text field "A" and that the combo box has two options ("data" and "-"). When I select "-", another text field "B" is empty, while when I select "data" i populate the text field "B" using the code entered "A" with the text "data_123". In order to do this I use the standard javascript code in the Format>Custom tab of the combo-box.
    My questions are:
    - how can I prevent the pdf to proceed selecting an option in the combo box when the field "A" is empty?
    - how can I update the field "B" every time that I change the text in "A"? I found that the text is "B" is updated only when I press the selection in the combo box.

    You can set the combo box to read-only in the Validate event of the A field:
    // Validate script for text field
    getField("combo1").readonly = !event.value;
    To update the value of B when A changes, you can expand the script above to something like:
    // Validate script for text field
    var f1 = getField("combo1");
    var f2 = getField("B");
    // If there is an entry in the A field...
    if (event.value) {
        f1.readonly = false;  // Make sure the combo box is activated
        f2.value = f1.value === "-" ? "" : "fa.value + event.value;  // Update the value of field B
    } else {
        f1.readonly = true;  // Deactivate the combo box
        f2.value = f2.defaultValue;  // Reset field B
    You might also want to reset the combo box somewhere in there, but it's not clear to me when you would want to do that.

  • Using Javascript to create concatenated string from checkbox fields to one text field

    Hi. I have a PDF form that I am trying to have output to a spreadsheet that matches my database schema. Here is the dilemna:
    * I have a set of checkboxes for available languages (LANGUAGE_ENGLISH, LANGUAGE_SPANISH, etc.) When they export to spreadsheet, the value is TRUE.
    * I need to take values from checked boxes and create a single string in a text field called LANGUAGE_DISPLAY (so my UI will not need to do the concatenation). If LANGUAGE_ENGLISH is TRUE (checked), append "English, " to LANGUAGE_DISPLAY, else append "". Then, if LANGUAGE_SPANISH is TRUE (checked), append "Spanish, " to LANGUAGE_DISPLAY, else append "". And on and on
    In the LANGUAGE_DISPLAY text field properties, I am inserting a Custom Calculation script to try to achieve this, but am not getting any results. I tried teh following even trying to pull the checkboxes default values and string them together:
    box1 = this.getField("LANGUAGE_ENGLISH").value.toSrting();
    box2 = this.getField("LANGUAGE_FARSI").value.toSrting();
    box3 = this.getField("LANGUAGE_MANDARIN").value.toSrting();
    event.value = box1 + ', ' + box2 + ', ' + box3;
    I also played with this to get the desired strings output...but to no avail:
    if ( LANGUAGE_ENGLISH.rawValue == true )
    box1.rawValue = "English, ";
    if ( LANGUAGE_FARSI.rawValue == true )
    box1.rawValue = "Farsi, ";
    if ( LANGUAGE_HEBREW.rawValue == true )
    box1.rawValue = "Hebrew, ";
    event.value = box1 + box2 + box3;
    Then I tried to simplify to see one field output so used this script...still no results:
    event.value = "";
    var f = this.getField("LANGUAGE_ENGLISH");
    if ( f.isBoxChecked() == true) {
    event.value = "English";
    Couple questions:
    1) Am I on the right track with any of these scripts?
    2) Is there something else I need to do to get the script to run before running the Create Spreadsheet with Data Files comman in Acrobat to get my csv file output? Maybe there needs to be some event to get the checkbox values read by that field in order to calculate/create the string.
    Appreciate any help you can provide.

    LiveCycle Designer has shipped with all Acrobat Professional versions since the "Professional" version was introduced with version 6.
    You do not let us know want results you get in the field or the JavaScript console.
    Using:
    box1 = this.getField("LANGUAGE_ENGLISH").value.toString();
    box2 = this.getField("LANGUAGE_FARSI").value.toString();
    box3 = this.getField("LANGUAGE_MANDARIN").value.toString();
    event.value = box1 + ', ' + box2 + ', ' + box3;
    returns "Off, Off, Off", when no box is checked and returns "Yes" for the appropriate box being checked when the default value is used for the creation of the check box. So if one would make the 'Export Value' of the box from the default value of 'Yes" to the appropriate language, one would get a more desirable result. But for each unchecked box the value would appear as "Off". So one needs to change the 'Off' value to a null string. But one is still left with the separator when there is an unchecked option.
    Using the following document level function:
    // Concatenate 3 strings with separators where needed
    function fillin(s1, s2, s3, sep) {
    Purpose: concatenate up to 3 strings with an optional separator
    inputs:
    s1: required input string text or empty string
    s2: required input string text or empty string
    s3: required input string text or empty string
    sep: optional separator sting
    returns:
    sResult concatenated string
    // variable to determine how to concatenate the strings
    var test = 0; // all strings null
    var sResult; // re slut string to return
    // force any number string to a character string for input variables
    s1 = s1.toString();
    s2 = s2.toString();
    s3 = s3.toString();
    if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
    assign a binary value for each string present
    so the computed value of the strings will indicate which strings are present
    when converted to a binary value
    if (s1 != "") test += 1; // string 1 present add binary value: 001
    if (s2 != "") test += 2; // string 2 present add binary value: 010
    if (s3 != "") test += 4; // string 3 present add binary value: 100
    /* return appropriate string combination based on
    calculated test value as a binary value
    switch (test.toString(2)) {
    case "0": // no non-empty strings passed - binary 0
    sResult = "";
    break;
    case "1": // only string 1 present - binary 1
    sResult = s1;
    break;
    case "10": // only string 2 present - binary 10
    sResult = s2;
    break;
    case "11": // string 1 and 2 present - binary 10 + 1
    sResult = s1 + sep + s2;
    break;
    case "100": // only string 3 present - binary 100
    sResult = s3;
    break;
    case "101": // string 1 and 3 - binary 100 + 001
    sResult = s1 + sep + s3;
    break;
    case "110": // string 2 and 3 - binary 100 + 010
    sResult = s2 + sep + s3;
    break;
    case "111": // all 3 strings - binary 100 + 010 + 001
    sResult = s1 + sep + s2 + sep + s3;
    break;
    default: // any missed combinations
    sResult = "";
    break;
    return sResult;
    And the following cleaned up custom calculation script:
    box1 = this.getField("LANGUAGE_ENGLISH").value;
    box2 = this.getField("LANGUAGE_FARSI").value;
    box3 = this.getField("LANGUAGE_MANDARIN").value;
    if (box1 == 'Off') box1 = '';
    if (box2 == 'Off') box2 = '';
    if (box3 == 'Off') box3 = '';
    event.value = fillin(box1, box2, box3, ', ');
    One will get the list of languages with the optional separator for 2 or more language selections.

  • Position cursor in text field when form is opened

    Another newbee question I'm afraid!
    I want to position the cursor in a text field when a user opens the form. I can't find a way to do it but I'm pretty sure it's straightforward!
    Also, can I remove fields from the tab order?
    Thanks (for your help and patience!)

    Hi,
    You would select the object that you want to receive focus and put the following in the docReady event.
    xfa.host.setFocus("this");
    The docReady event is a good one to use, because it only fires once.
    The tab order can be set in the Tab Order tab. Depending on the version of LC Designer that you have, the flexibility will vary. However I would do this as a last step, as any changes can throw the tab order out of sequence.
    Note that tab order is greatly affected by the relevant x/y coordinates of objects and where objects are in separate subforms.
    Hope this helps,
    Niall

  • Data from one text field to another text field on the next page

    Hi all,
    Hi I have a form, which has data coming in from the data binding, the thing is the data is mapped to a certain text field and if that text field is filled up it should be continued on to the other text field which is on the immediate page following it. the reason for using text field instead of  Subform and make it expandable is  the client does not want to change the position and structure of other fields following that field, they are o.k with the amount overflowed in to the next text field .
    is there any script for the same condition in Java script or form calc.
    Thanks in advance.
    de1209

    This is not as simple as it sounds. You will not be able to split the field up during the time of binding. The entire string must go into the field and only after it has completed the biinding can we change it around. A colleage of mine did this for an interactive field and it involved some pretty complicated code. Here is a link to her blog entry that describes what she did:
    http://blogs.adobe.com/lcdesigner/2008/07/an_example_of_splitting_text_a.html
    But that is only part of the problem.....once you split the information across two fields you will need to recombine it back into a single field so that the data that is submitted can represent it correctly again. So you will have to reverse the process in a presubmission step.
    Make sense?
    paul

  • Please, help with text field on form

    Hello,
    I am creating a form.  I have a text field where the person will type a number into text field and I need it to also enter in another text field.  For example, the person enters 23 into text field 12, I also need the entry of text field 12 to show up in text field 63.  Is this possible?  I'm VERY new to this, so a step by step response would be greatly appreciated!
    Thank You!!!
    Debby

    This requires a script as you have to first verify that the denominator is not blank or zero, or you'll get an invalid operation.
    Something like this should work as the custom calculation script of your field:
    var s1 = this.getField("Text2").valueAsString;
    var s2 = this.getField("Text3").valueAsString;
    if (s1!="" && s2!="" && Number(s2)!=0) event.value = Number(s1)/Number(s2);
    else event.value = "";

  • How to change the color of the text field of form

    Hi ,
    Is there any way to change the color of the text field of the form........
    Thnx in advance .......
    Cheers,
    Eman

    Hi Bob. I'm new to these forums and I'm not sure of protocol and exactly how this is supposed to work, so If I'm doing this wrong then please excuse me and let me know.
    I liked you solution on 'How to change the color of an Item on a form' using <blink>.
    I'm new to this application and coding as well so its kind of foreign to me.
    Working on a Report Page,
    I would like to have item, :P1_JOB_NO blink when the difference between sysdate and :P1_DATE_DUE < 7 days.
    I can identify the job_no which should blink by using the sql statement:
    SQL> select job_no from oax_projects07 where
    2 (sysdate - date_due < 7) and
    3 emp_name = 'GARY PILKENTON';
    JOB_NO
    20060627 050
    But I dont know the proper syntax to make it blink,
    or when to plug the syntax into.
    ie, is it a process, a validation, etc.
    Do you have any advice for me?

  • Setting Character Limits or Font Size in Text Fields In Forms

    Hi everyone.  I've created a form but the problem is that people are changing the font size in order to fit mrore into the locked text fields.  I want to create either a chaacter limit or lock the font size as to prevent people from changing around the forms.
    Thanks for your help.

    ^^ In the instructions?  Or is there a way to do that in Acrobat?

  • Different appearance of Input Text field in form tag

    Hi,
    not sure why the input text fields in design mode are of
    different appearances. That is, some input fields are in embedded
    light orange shade, while some input fields are just simple
    rectangle outline. I have checked the codes and property settings,
    and all the input text settings are the same except for the name. I
    have also tried deleted, copy, insert new form's input text at
    different location. The problem still persist. Pls kindly adv, tks.

    On Sat, 15 Sep 2007 17:09:08 +0000 (UTC), "Puzzle Ice"
    <[email protected]> wrote:
    >Pls forgive my shallow knowledge, but what is offending
    page? And, why google
    >classify some fields to be auto-filled? I checked and
    recreated the fields
    >repeatedly, and all fields are created thru the same way.
    The design mode and
    >property settings looks normal. But, it looked different
    when viewed on
    >browser. Where hv I missed out, and how can I repair this
    problem? Tk u.
    The offending page means the page that's giving you problems.
    Read this
    about the Google Toolbar's autofill feature:
    http://www.google.com/support/toolbar/bin/answer.py?answer=17380

  • Printing all text inside the scrollbar in Text Field -Adobe Form

    Hello,
    I'm creating a form in Adobe Designer 7.0 with a Text Field that allows the user to enter as much information as they want. How do I set it to so that when the form is printed all the information that's entered also prints? Right now it only prints what's visible on the text box that I've defined. I have set the Text Field to Allow Multiple Line and Expand to Fit.
    Thank-you.

    Sure, you could do that fairly easily with just a bit JavaScript. It would have to be done by someone with Acrobat who receives the filled-in form. The text from the fields could be extracted and placed in a text file attachment that you create with JavaScript, and then extract the file attachment.
    For the general methods you'd use, see:
    createDataObject: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    exportDataObject: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    Another less flexible approach is to extract to a tab delimited text file: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.460.html
    For this, you can specify just the fields you want to include, so you don't have to bother with all of the fields in the form being included.

  • Acrobat 11.0.06 crashes with text fields in forms

    Hi All,
    Trying to fill out a PDF form in Acrobat but it crashes whenever I click on the text fields. I also can not open my preferences panel without it crashing.
    I tried installing the patch but that didn't help.
    Any help would be much appreciated!
    Jake

    Hi Deepak,
    I downloaded another unrelated form just to check and it crashed also, so all forms are causing the same crash. It happens when I click on the text field.
    Thanks for the help!
    Jake

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • Populate one text field on a form based on the value in another

    I am new to APEX and building my first application.
    When a user enters a value in one field, I would like to run a SQL command and then display a value in another field based on the value in the first field. For instance, if a user enters a part number in one field, when they tab off of the field, I would like to display the name of the part in the part name field.
    Thanks

    Thanks. That put me on the right track. I used that link to find the link http://htmldb.oracle.com/pls/otn/f?p=11933:11:2890374750690437 and then using the two was able to put together a solution.
    I am down to one last issue. I am able to return the name back from the process and display it with an alert statement. Unfortunately, I am unable to display the value on the form.
    I am doing the following.
    <script language="JavaScript1.1" type="text/javascript">
    function f_getCustomerName(id)
    var v_id = id;
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=getCustomerName',$v('pFlowStepId'));
    get.addParam('x01',$v('P2_CUSTOMER_ID'));
    gReturn = get.get();
    get = null;
    gReturn = (!gReturn)?'null':gReturn;
    /* The below do not work
    $s('P2_CUSTOMER_NAME',gReturn);
    document.getElementById('P2_CUSTOMER_NAME').value = gReturn;
    document.getElementById('P2_CUSTOMER_NAME').value = 'TEST';
    alert(document.getElementById('P2_CUSTOMER_NAME').value );
    alert(gReturn);
    //-->
    </script>
    Process: getCustomerName
    declare
    l_customer_id customer.customer_id%type;
    l_customer_name customer.customer_name%type;
    begin
    l_customer_id := to_number(wwv_flow.g_x01);
    select customer_name
    into l_customer_name
    from customer
    where customer_id = l_customer_id;
    htp.p(l_customer_name);
    end;

Maybe you are looking for

  • Problem with 3D sphere in Photoshop Extended CS6

    Here is a still from what will be a trade show video. The problem is that the longitudinal lines are a bit wobbly, especially near the poles, for instance in the top right quadrant, between the orange and yellow earplugs. http://www.flickr.com/photos

  • How do you change the date associated w an event in FCPX?

    In iMovie there's a menu item to correct dates, and its very useful. Even though the dates are corrected in iMovie, when imported into FCPX the modified date is lost. I've got imported VHS with the date of conversion to digital, not the date of filmi

  • Flash 8 in flash 6 ??

    hello we have done a few animation in flash 8, and we done the export in flash 6 ( because it was asked by our client) the result is bad, because the flash animation are moved in the html page, and a logo is completely mashed do you know a few rules,

  • DB Connect Transport

    We have created dataflow using DB Connect. It works fine in dev system. We want to transport this to our QA environment. We have created the source system in QA. We need to know how is the datasource and the transfer rules transported. We don't see t

  • Why can't I keep the event-dates I have listed on my iPad 3 calendar?

    I've been using my iPad 3 calendar for my business appointments and special events! But some of the event-dates are kept but others just disappear specially the occuring dates!! This is very disappointing and I want to know what could be done to corr