Auto form field change color/data from pronounce on another page

Adobe form help.jpg

Hello!

I recently got help on the forums and was able to write javascript to change the form fill and border based on an entry of individuals (thanks!).  I am now to experience the problems that I continue to work on this document.  I drew a picture that illustrates 3 different results, its located above.  To explain what I need, here is how the form is supposed to work:

1. a user enters the State of equipment on page 2, I make sure that only AAA, BBB, CCC or s/o became acceptable.  Each value changes the field of form as shown above and n/d is no change on the ground at all.

2. based on the user to page 2 input, I'm trying to get a form field only read to a "general status" page to change the color and change its value based on these entries.

The three columns above show the 3 possible outcomes of the general State of page 1, that is to say:

1: date of AAA [BACKSPACE] page 2 Date1 field. (all user entries are AAA (n/a which is not taken into account))

2: date of BBB [BACKSPACE] page 2 Date1 field. (user input contained one or more of the values BBB or CCC)

3: date of CCC [BACKSPACE] page 2 Date1 field. (all user input were CCC)

I do this train to work and don't have adobe Adobe Acrobat XI worm: 11.0.13 at home.  Thanks for the help and if my description or photo is confusing, let me know and I can try to explain it differently.  Each column is a document, the document possible self doesn't have a 3 columns.

J

Let's see if I understand:

1. the user enters 'AAA', and the color of the background/outline field turns green.

2. the user enters "BBB", and the color of the background/outline field turn yellow.

3. the user enters "CCC", and the color of the background/outline field turns red.

4. the user enters "S/o", and the default color (it looks like teal) will be used

4. If all the entries on page 2 are of the same color or the value "N/a", this color will be used for the field page 1

5. If all the entries on page 2 are not the same color or the 'N/a', 'yellow' color value will be used for the field page 1

Describes the behavior of the form?

I would use a document level function to manage both the validation of the seizure and the choice of colors. The first part of the function (validation) is quite simple. The second part (setting the current color of field) is something that you already know how to do it. The third part, determine the color of a field of the general State is a little more complicated. I would like to look at all the fields that are not current on the ground - loop - (because you can just make a call to Doc.getField ()), then take the current information in the field of the event object in the validation script and determine what should be the status of the output (and then set the color accordingly).

Something like this should work:

function ValidateStatus() {
    // is the data entered either "AAA", "BBB", "CCC", or "N/A"?
    if (event.value == "AAA") {
        event.target.fillColor = color.green;
        event.target.strokeColor = color.green;
    } else if (event.value == "BBB") {
        event.target.fillColor = color.yellow;
        event.target.strokeColor = color.yellow;
    } else if (event.value == "CCC") {
        event.target.fillColor = color.red;
        event.target.strokeColor = color.red;
    } else if (event.value == "N/A" || event.value == "") {
        event.target.fillColor = color.cyan;
        event.target.strokeColor = color.cyan;
    } else {
        event.rc = false;
        app.alert("Only the values 'AAA', 'BBB', 'CCC', or 'N/A' are allowed");
        return;
    }

    // set the field on page 1
    var fields = ["Status1", "Status2", "Status3", "Status4"];
    var theStatus = "N/A";
    for (var i in fields) {
        var v;
        if (fields[i] != event.target.name) {
            v = this.getField(fields[i]).value;
        }
        else {
            v = event.value;
        }
        if (v == "N/A" || v == "") {
            continue;
        }
        else if (theStatus == "N/A") {
            theStatus = v;
        }
        else if (theStatus != v) {
            theStatus = "BBB";
        }
    }
    var msg = theStatus + "\n" + this.getField("Date1").value;
    var theColor;
    if (theStatus == "CCC") {
        theColor = color.red
    } else if (theStatus == "BBB") {
        theColor = color.yellow;
    } else if (theStatus == "AAA") {
        theColor = color.green;
    } else {
        theColor = color.cyan;
    }
    var f = this.getField("OverallStatus");
    f.value = msg;
    f.fillColor = f.strokeColor = theColor;
}

You then call it in four areas as a custom validation script:

ValidateStatus(event);

Tags: Acrobat

Similar Questions

  • How to make a stationary State (or equivalent) for the form to change color and reveal some hidden above text...? is there a widget I could use?

    How to make a stationary State (or equivalent) for the form to change color and reveal some hidden above text...? is there a widget I could use?

    There are many solutions. A more simple: put the text and the items colored in the back and put the 'shape' on it. Configuration of the 'shape' become transparent in a stationary state.

  • Change a data area on all web pages from a single source.

    I need to change the data on all the web pages on a constant basis. How can I make a single source since Spry is no longer supported.

    Personally, if the server has installed PHP (most do so, but check with your host), I would use a server side include: Server Side Includes > Introduction

    That would allow you to edit and upload a file, the server would then add the information in this file to your pages anywhere where you add the code of tiny include.

  • I can't change my data from invoices

    I want to buy Photoshop elements and items first, but I can't change my old Adobe ID data. Cannot change any field data from invoices. The response of the system is: contact us. Italian chat is closed.  Marcella del vecchio.

    Hello

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

  • script for reading calculated field changes color according to requirement

    I need help to create a script that would do a single reading calculated field to change color if a condition is met.  If the script placed in the calculated event?

    The fields are:

    CourseNum (automatic sum calculates 11 different numeric fields)

    A1p (digital calculated read only field)

    AP (digital calculated field read-only)

    HIGHA (the sum of the A1P and AP) - this is also a calculated read-only field

    Therefore the condition:

    If CourseNum > 20 and HIGHA > = 50%

    then change the background color of the yellow HIGHA

    otherwise, it should be white

    This is your statement. The "or" is the last used operation. So, you're saying, ' if the year 4 and (B1P + BP) > ".45" OR so (B1P + BP)<".30" and="" coursenum="">= "20", then change the background.»

    Try:

    If (form1. #subform [0]...) YearLevel == 4 & ((B1P+BP) > ".45" or (B1P + BP)<".30") &="" coursenum="">= '20')

  • copy data from an frm another form using one-third of

    Hi all

    I have three forms f1, f2, f3

    in f1, I have order_no, value, address
    List of F2 to order_no based on formula 1
    F3 F1 for sale

    I want a button on f2, if I select a particular order no and press the button copy data from f1 to f3

    Please guide

    Thanks and greetings
    Vikas Singhal

    Hi Vikas,

    Then try the global variable way. In the n "f2" (all orders with the status of the list), in the WHEN BUTTON PRESSED trigger, assign the command not to a global variable.

    :GLOBAL.Str_Sales_Order_No := :.SALES_ORDER_NO;
    

    and then call the form of the sales invoice.

    and in the One TIME-NEW-FORM-INSTANCE trigger, get the values from the order to the sales invoice to use a SELECT INTO statement.

    SELECT SALES_ORDER_NO, ORDER_DATE, ............ INTO :SALES_INVOICE.ORDER_NO, :SALES_INVOICE.ORDER_DATE, ......... FROM SALES_ORDER WHERE SALES_ORDER_NO = :GLOBAL.Str_Sales_Order_No;
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • All the form fields do not paste from one file to another

    I use Adobe Acrobat DC on OS 10.10.3.

    I have a .pdf file containing form fields set up on what I want to use it as a 'model '.

    One machine I can copy the form fields and put in a new .pdf file and it works fine, but on any other machine, I tried it on it is not. On the other machines when I copy the fields of the form about 75 percent of stick them in the new .pdf.

    Is there a setting/preference on what I should check or would be - something else causing this problem?

    Thank you very much for the help.

    Replacing the old pages with the new in Acrobat is the standard way to do what you want. The fields of forms, links, code, bookmarks, comments, page/document, metadata, etc. are preserved.

  • Help! Transfer data from Table to another!

    Hello

    my case is: I have a 2 tables, the first contains personal information of an employee, and I have a form that displays employee data.

    so I want when I submit the form, the data moves from the entire table to another table, then how do I do that?

    * I use Dreamweaver CS5!

    INSERT INTO table1 (fld1, fld2, etc)  SELECT fld1, fld2, etc  FROM table2 WHERE.....;
    

    Question: Why do you have 2 similar tables and why you duplicate data? Is it not enough to store the primary key of the table 2 in table1?

  • Form fields copy and pasting one PFD to another

    Copy and paste form fields of a PFD to another while in form editing mode has stopped working. I did a hundred times and then the second document suddenly stopped to accept my objects to the Clipboard. That's happened?

    I answered my own question by trial and error.

    I worked with excel to create columns that will automatically detect the wizard. I then transferred these columns into a MASTER spreadsheet.

    I had unconsciously tried to copy/paste text fields with the same name as the associated checkbox. It gives me a warning pop - up or anything like that so I could ' t understand why it didn't work. Hope this helps someone who has the same frustration I was.

    Thank you

  • Is there a way to change the date limit of the details page of Salesforce agreement once that agreement came out to the Signature?

    Currently, the only way to change your Salesforce is by going to "manage agreements." The problem is that the registration of Salesforce and echosign are more synchronized. Is there a way for users to go to the agreement and be able to change the date limit?

    Hi esluskonis,

    I'm sorry, but it is not possible to change the time of the signing of the document by using Salesforce.

    Kind regards

    Ana Maria

  • Enter the text for the form field and do to repeat in the following pages

    Hi - I'm working on an interactive form of 14 pages. There are two text fields that must appear on the bottom of each page.

    Anyone know if it is possible for the user to these fields in competition once and while the text automatically repeat on the following pages?

    I create the form in InDesign CS6 (I CC, but it runs like a turtle).

    Any help much appreciated! Thank you.

    Form fields with the same name will have the same value, so just name them

    Similarly.

    Duplicate a field on several pages is easily achievable in Acrobat, by the way.

    There is a built-in function that allows you to do when you right click on a shape

    in form editing mode.

  • tools to move data from a to another laboratory Manager data store?

    do you know if it is 3rd third-party tool to move stuff from a data store to another with the Director of the laboratory?

    What you are trying to accomplish, and we can help you if you can explain more details.  But for the Director of laboratory, there is a tool call SSMOVE.exe you will need to contact VMware Support for them to give it to you and its not available for free.  This tool allow you to move data from one storage to another Lab Manager environment.  I don't know if it is what you are looking for or you can watch Storage VMotion, but that applies only to the ESX host.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • Color design 'States' copy to another page

    I am using a widget with tabs on one of my web pages and succeeded (finally) set the colors of the tab and the colors of text for various States, just as I wish they were. I want to use the same design on an Accordion widget on another page, but it seems I have to yet again from the beginning. Is there a way to record the pattern of color/text/States and apply it to another widget (or button or other)?

    Starting up again every time is irritating,

    One of reasons for irritation, is that "selection of text image" with the dotted line through the text where I can edit the States is very difficult to isolate.Text.JPG

    (When it looks like this ^ then States are indicated)

    I can get it with the widget by tabs, but in the Accordion widget, it jumps still from 'container' with States to "text frame" without being identified, States the text without editing herself. Capisch? Hard to explain.

    Karen

    Post edited by: siegbrunn

    OK, there are a few issues that should be mentioned here.

    Lets start with the dotted in the text line. The sole purpose of this line is to indicate where the bottom of your text frame should be. If you insert text that is larger than your block of text, it is a defiler Visual of how the text box developed to adapt to the larget text. There is no association with the States I know.

    Then, it seems that you have found and are to understand how to use the States Panel. It can be difficult. There are two other Siparium, you need to know about: Panel The graphic Styles and character Styles Panel. These will allow you to save the graphic configurations or textual configurations to be applied to other things later. In addition, when you change one of these styles, it will automatically update everything that uses the style. If you do not see these panels, use the menu command "window > Graphic Styles ' or 'character Styles.

    And finally, the Accordion widget as well as some other widgets are slightly different in that the buttons they use are just a block of text, rather than a Rectangle with a block of text above them. Directly edit the text block is fine. You should be able to apply effects to a block of text that you would be in a position of a Rectangle. They also have the same States, you can find help from the States Panel (window > States).

    Hope that helps.

  • You want to varify each form field with the value from database?

    Hello Experts,

    I have to implement a feature that will confirm the change for each text field on the form.

    Scenario:

    I have a form with several fields of database tables.

    We have set the indicator for each column of each table to Yes or no in a master table to access.

    When users navigate to any text field in any database block, procedure, or a function will varify that access is granted for the amendment of this column.

    If the access flag is set to yes, user can change. otherewise fast with the message, you are nor allow to change this field.

    I don't want to call this procedure and a function in each field.

    Also, if in the future if a new field will add to this form, there is no need to change in the code or we should not require to remember to check the indicator of access to this column.

    Please help me.

    Thank you

    Yoann

    NEXT-KEY is always triggered, then you can try to put that code in WHEN-VALIDATE-ITEM trigger. This way you can navigate on this field if it's empty DB, but can not force the user to enter data in a new record. Alternatively, you can ask again priviledge change data in your trigger KNI.

  • Can a form field change 'Visible' to "Visible but doesn't Print" If someone adds to an electronic signature?

    Seems that when people add in their own electronic signature (outside the fields, we have created) all fields filled change 'Visible' to 'Visible but doesn't Print. Is there a way to avoid this?

    You can report it here: feature request/Bug Report Form

Maybe you are looking for

  • K430 replacement of RAM not detected

    My original factory installed RAM was 12 GB,... a quantity of three modules of 4 GB installed in 3 of the 4 places available K430. Recently, information system and Task Manager started showing only 8 GB of RAM installed. Using the Crucial RAM compati

  • WNDR3700v3 and Readycloud

    Readycloud apply to my WNDR3700v3 router? Can I access devices (readers, etc.) connected to the USB port on the router WNDR3700v3 via Readycloud and my Android smartphone?

  • Create a data streaming from C++ stream and read it in LabView

    Hi all. I'm working on a project that is to connect to a tracker of movement and reading data of position and orientation of this in real time. The code to get the data is in c ++, so I decided that the best way to do it would be to create a c++ DLL

  • Driver of HP Photosmart 7515 conflict detected

    A network connection and he lost.  A ran diagnostics and after uninstall & reinstall several times, it keeps PILOT CONFLICT DETECTED, whenever I re - install when it gets to the NETWORK CHECK or VERIFICATION of NETWORK ENVIRONMENT, it becomes unrespo

  • A "free trial" of MS Access is available? If so, how it is obtained?

    original title: MS Access? A "free trial" of MS Access is available? If so, how it is obtained?