Goto field and listbox color formats

i've got two questions
1. i've scripted a functional listbox (field2) that hides or shows fields depending on options selected ('yes' opens field2a, 'no' hides field2a) but depending the option chosen i want to 'go to' an appropriate field. example: 'yes' automatically goes to field2a, 'no' proceeds to field3
as it is the 'yes' jumps to field3 and 'no' goes back to the top of the page. is there a command/script i can enter at the end of the 'if' and 'or' statement that will place the cursor in a designated field?
2. the list box only shows as white text on a blue background. is there a way to make it show like a regular text box (black text on a white background)?
any help is greatly appreciated!!
..joseph g

You are sure you are getting only "No" and "Yes" from your list box?
$host.messageBox(Concat("Event value = ", event.vlaue), "Verify Event Value", 3, 1);
if (event.value=="No") {
this.getField("5S1").hidden = true;
xfa.host.setFocus("8");
}else {
if (event.value=="Yes") {
this.getField("5S1").hidden = false;
xfa.host.setFocus("5S1") };
Are your 2 fields are not in the same section, you will need to provide the full reference.

Similar Messages

  • Color picker - "color field" and "current color" differences

    Can someone explain why this is happening.
    The current color box is displaying a different color to what is selected in the color field... if i click ok it goes with the color in the color field. I just noticed this today and it doesn't do it in Photoshop even though they both have the same color profiles.
    http://expansiondesign.com/images/illustrator%20color%20picker.png
    Cheers
    Barton

    I'm not sure if I understand the text format issue you are
    having. It sounds like you want to have text that is already
    formatted change to another format.
    If this is the case you just need to set the new text format
    whenever the time comes to do so.
    If you have...
    var format1:TextFormat = new TextFormat();
    format1.font = "arial";
    format1.size = 14;
    var format2:TextFormat = new TextFormat();
    format2.font = "papyrus";
    format2.size = 28;
    then you can switch between the two formats as needed...
    tField.setTextFormat(format1);
    tField.setTextFormat(format2);
    so long as those formats are within scope of their being
    called.

  • Compare 2 fields and change color when they do not match

    I have a form where I am totaling up 2 columns.  When all is said and done both totals should match, but if they don't I want to change the color of one field to red and display a message. 
    Thanks,
    Diane

    You can use the following custom calculation script for a hidden text field. Just make sure that it is after the other two fields in the field calculation order:
    (function () {
        // Get references to the two fields
        var f1 = getField("column1_total");
        var f2 = getField("column2_total");
        // Get the field values, as numbers
        var v1 = +f1.value;
        var v2 = +f2.value;
        // If the values don't match, set f2 text color to red, otherwise black
        if (v1 !== v2) {
            f2.textColor = color.red;
            app.alert("Column values don't match.", 3);
        } else {
            f2.textColor = color.black;
    This will work if you're summing integers, but not if you're summing real numbers, which is usually the case. For example, this is what JavaScript calculates for the following two additions:
    0.4 + 0.5 = 0.9
    0.3 + 0.6 = 0.8999999999999999
    This is due to the way floating point calculations are performed in JavaScript. In such a case, the code above will consider the two values to be different, even though they may display as the same value (e.g., 0.90) in the field. To deal with this, you can round each field value to a certain number of significant digits before you compare them, like this:
        // Get the field values, as numbers rounded to two decimal places
        var v1 = util.printf("%.2f", +f1.value);
        var v2 = util.printf("%.2f", +f2.value);
    and that should take care of it.

  • I'm having trouble with a Text Field and a Time Format

    I have created a form.
    There are many text fields for clients to fill out.
    One Field have been formatted to enter a time. Ex. 6:00pm.
    This works great unless it's a 12:00am time then the field reads 00:00am
    I would rather it read 12:00 am.
    How can I do this?

    Maybe you should put the time format in 24hour instead.

  • Scanning conflict   Acrobat 9 pro   "Color Format Selected Not Supported"

    I have had several conflicts with Adobe Acrobat 9 and my HP C5180 printer/scanner/copier.   I have downloaded new drivers from HP.   When I try to create  a PDF from the scanner,  I get this conflict warning:   "Color Format Selected Not supported".    So, I change the color format selections in both HP and Acrobat and I still get the warning.    I must admit I haven't tried the black and white color format.  But I want to scan simple color images.  No luck.  
    Has anyone else had such a problem?

    This may have nothing to do with your problem, but -- at least with Acrobat 8, there is a 100MB limit to the scanned image. Are you trying to scan something larger than that?

  • How to import and make the content of the original PDF document editable and preserves the pdf appearance and retains existing fields and formatting in LiveCycle

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

  • How do I copy a document from pages into email (not pdf) and have color and format the same as the document created in pages?

    How do I copy an entire document from pages into email (not pdf) and have color and format the same as the document created in pages?

    Pages ’09 v4.3 and Pages v5.2.2 are entirely different document architectures. Consequently, copying and pasting a table from Pages ’09 circumvents the customary translation process  that would occur if you opened that Pages ’09 document in Pages v5.
    Make a backup copy of the Pages ’09 document that has the table in it, and then open this document in Pages v5.2.2. The table is translated into Pages v5 document format and displayed correctly. You can even select this Pages v5.2.2 table, and then copy/paste it into another Pages v5.2.2 document with accurate results.

  • Is there a way to color one thing in a black and white photo.  Example:  I have a picture of a tulip field and I want to make it black and white - which I have already done - but I want to make one single tulip red.  Help?

    Is there a way to color one thing in a black and white photo.  Example:  I have a picture of a tulip field and I want to make it black and white - which I have already done - but I want to make one single tulip red.  Help?

    No, you'll need an external editor for the job:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • Disabled HTML Fields and Coloring them

    Hi,
    There are about 100+ JSPs/HTML pages in my application. Some of them have readonly/disabled fields. I have to color such fields using a color of client choice. So I have written the following in CSS with out adding any class attributes for HTML fields.
    input[disabled]{..........;}The solution is working for Opera, Safari and Firefox but not for IE.
    Is there any solution where I can use just CSS without any class attribute for HTML controls.
    -J

    IE6 or older indeed doesn't support [CSS selectors|http://www.quirksmode.org/css/contents.html] yet. Use a onload Javascript function.
    But IE7 should support it in [standards mode|http://hsivonen.iki.fi/doctype/].

  • Lead Page Layout General Question - User Interface - Fields and Color

    General question if possible to do this or not, can we make a field be in color similar to the red required fields?

    Changing field or text colours is not support by OnDemand at this time

  • Color formatting in SSAS

    Using SQL Server 2008 R2:
    I have a star schema with a fact table containing the following:
    ID BIGINT IDENTITY, FK_Dimension1 BIGINT, FK_Dimension2 BIGINT,
    dataValue NUMERIC(20, 8), classification NVARCHAR(20)
    The classification defines the security classification for each dataValue, and can contain either "public" or "confidential".
    I've created a degenerate dimension which contains the classification field, and the dataValue resides in the associated measure table.
    My requirement is to format the dataValue in any tool that is rendering the data as RED if any value in the aggregation of that field contains an associated classification of "confidential". So for example if in an excel pivot table I was displaying
    the aggregation of 3 values and one of them was confidential then the value should display as red text.
    I have the following MDX query in my cube calculations to handle the formatting:
    CALCULATE;
    SCOPE
    [Measures].[dataValue]
    If([MyDegenDimension].[Classification].[Confidential]) Then
    Fore_Color(This) = 255
    End If;
    END SCOPE;
    This works great whenever there are values in the dataValue field other than zero. If I drill down in my pivot table to show a single value that happens to be zero then the color formatting does not apply. The business requirement is that any confidential value
    should be flagged as red, and it's valid that a zero value could be confidential. Note it displays the dataValue as red even if the classification dimension is not used in the pivot table.
    Is there any way I can alter my MDX query so that it works for zero values as well?

    Hi Greg,
    According to your description, you need to set the measure value to red when associated classification measure value is "confidential", right?
    In your scenario, there is a classification value for each record, right? In this case, you can create a measure based on classification, then set the DataValue measure value's color based on the classification measure. Here is the sample query for you reference.
    CREATE MEMBER CURRENTCUBE.[Measure].[X] AS [Measures].[DataValue]
    , FORE_COLOR=IIF([Measures].[Classification]="confidential", RGB(255,0,0), RGB(0,0,0))
    , BACK_COLOR=RGB(255,255,255)
    , FONT_SIZE=10
    , FORMAT_STRING='#,#.000'
    Reference
    http://msdn.microsoft.com/en-IN/library/ms145573.aspx
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to set default value and bg color of cross tab cell?

    Hi all
    Which way can I set default value and background color for a crosstab cell where there are no any data?
    I try to pass it in following way
    if isnull(CurrentFieldValue) then
    But is has no effect.

    Hi,
    If your field is numeric
    if currentfieldvalue =0 then cryellow else crnocolor
    if the field is numeric but you don't see the 0 check check if : Suppress if zero is ticked in the Number format tab.
    Regards

  • In competitive exams photo in "true color" format.... How to do it in adobe photoshop please replay it.....

    In competitive exams photo in "true color" format.... How to do it in adobe photoshop>>> please replay it.....

    Mayuk, you are not making any sense here.
    True color (24-bit)
    "True Color" redirects here. For images with natural color rendition, see true-color.
    http://en.wikipedia.org/wiki/File:Truecolor.png 24 bits (16,777,216 colors, "truecolor")
    True color supports 24-bit for three RGB colors. It provides a method of representing and storing graphical-image information (especially in computer processing) in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high-quality photographic images or complex graphics. Usually, true color is defined to mean 256 shades of red, green, and blue, for a total of 224 or 16,777,216 color variations. The human eye can discriminate up to ten million colors.[13]
     Color images composed from 3 grayscale images A, B & C assigned to R,G & B in different orders.
    "True color" can also refer to an RGB display-mode that does not need a color look-up table (CLUT).
    For each pixel, generally one byte is used for each channel while the fourth byte (if present) is being used either as an alpha channel, data, or simply ignored. Byte order is usually either RGB or BGR. Some systems exist with more than 8 bits per channel, and these are often also referred to as true color (for example a 48-bit true-color scanner).
    Even with true color, monochromatic images, which are restricted to 256 levels, owing to their single channel, can sometimes still reveal visible banding artifacts.
    True color, like other RGB color models, cannot express colors outside of the gamut of its RGB color space (generally sRGB).
    Macintosh systems refer to 24-bit color as "millions of colors".
    RGBA color space, or 32-bit color, is a variant of true color in which the additional 8-bit is allocated to transparency and indicates how transparent is the element to which the color is assigned, when overlaid on other elements.

  • Pls help : How To select fields and data from user_table for each tablename

    Please help with the query to generate a output which selects the code,meaning,inuse for each table in the user_table that has "CODED" as a part of table name.
    User table has some 800 table that contains CODED in the tablename.
    Desc of the table:
    DESCPTION:
    Name Null? Type
    SHORT_NAME NOT NULL VARCHAR2(20)
    CODE NOT NULL VARCHAR2(4)
    MEANING NOT NULL VARCHAR2(240)
    IN_USE VARCHAR2(1)
    NOTES VARCHAR2(2000
    UNITS NOT NULL VARCHAR2(1)
    AMOUNT NOT NULL VARCHAR2(3)
    CONVERTED VARCHAR2(1)
    RUN_NAME VARCHAR2(30)
    But all the table have code, meaning,in_use fields.
    O/P format :
    TABLE_NAME CODE MEANING IN_USE
    Help me pls.

    Not 100% sure what you want. If you want to see all the tables that have all three of those columns, then you could do something like:
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'CODE' and
          table_name like '%CODED%'
    INTERSECT
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'MEANING' and
          table_name like '%CODED%'
    INTERSECT
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'INUSE' and
          table_name like '%CODED%'If you want to select those three columns from each of the tables, then you could do something like this.
    Create a command file called, for example, makesel.sql that looks like:
    SET PAGES 0 lines 500 trimspool on feedback off;
    spool sel.sql;
    prompt spool selout.txt;
    SELECT 'SELECT '''||table_name||''', code, meaning, in_use FROM '||
           table_name||';'
    FROM (SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'CODE' and
                table_name like '%CODED%'
          INTERSECT
          SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'MEANING' and
                table_name like '%CODED%'
          INTERSECT
          SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'INUSE' and
                table_name like '%CODED%')
    prompt 'spool off;'
    spool off;
    @sel.sqlAt the sqlplus prompt run the file using @makesel.sql. This will create another file called sel.sql containing the commands to select those three columns from each table that has all three columns, then after the new file is created, it runs the file (@sel.sql). The output will be spooled to a file called selout.txt.
    HTH
    John

Maybe you are looking for