Text Color in disabled text field

Hi,
In our application, The default rendered text in disabled fields is not visible properly. In order to improve the visibility we applied different color using content style for those fields.
We did see the change in the fields after applying content-style. But it is a painful job to apply the content-style for each input field.
Is there a way to configure default text color in ADF which is applicable for all the disabled fields in the application?
We also tried the option of setting the color using css in following manner:
af|inputText::content{color:#333333;}
But this didn't have any impact on the text color.
Please let us know if we can achieve this through a single point fix in the code.
Thanks
Ravi

Hi Dimitar,
The :rtl is a special case, as is :ltr and :alias. These are always placed at the end and are purely for the engine, they do not generate any style class on the DOM whereas other peudo classes generate a p_AF<state> class on the MAIN DOM element, which is why you must place the class on them. For example:
af|inputText:disabled::content becomes
In the CSS: af_inputText.p_AFDisabled af_inputText_content
In the HTML <span class="af_inputText p_AFDisabled"><input class="af_inputText_content">
Regards,
~ Simon

Similar Messages

  • Setting different text colors within 1 formula field

    Post Author: hassan.annous
    CA Forum: Formula
    Suppose I am interested in coloring each part of a text returned by a formula field with a different color.
    For example I have the following string:
    Local StringVar Diagnosis := "I am trying to color my text.";
    And I would like to color "I am" in red, "trying to color" in blue, and "my text" in green.
    Is that possible (using Crystal Syntax)?

    Post Author: tyanksar
    CA Forum: Formula
    Yes, but suppose I have field that outputs this text: "I have 1000 Cars"
    The "1000" is dynamic (embeded field), which means it could go to 1000000 (increasing the number of digits) and then shif the word "Cars" to the right. What I need is to color this "1000" .
    I do not want to seperate the "1000" to another text box. this will not shift the "Cars" to the right when the digit increases. Also it is not convenient to expand the text box as well, it will look like this: "I have 1000          Cars".
    Any solutions?

  • How change text color runtime how text bold runtime

    hi master
    sir i display sum value in amount column
    is possible
    if amount>1000 then amount text bold and amount text color read
    where I put code and what code I use
    please give me idea
    thanking
    aamir

    Hello amir,
    In the amount field, create a conditional formating, in there you will put the code to change the text attributes, found the following example from the Report Builder Help Topics, under SRW:
    begin
       if :sal = 2000 then
          srw.attr.mask     := SRW.BORDERWIDTH_ATTR +
                               SRW.FBCOLOR_ATTR     +
                               SRW.BBCOLOR_ATTR     +
                               SRW.BORDPATT_ATTR    +
                               SRW.FFCOLOR_ATTR     +
                               SRW.BFCOLOR_ATTR     +
                               SRW.FILLPATT_ATTR;
          srw.attr.borderwidth := 1;
          srw.attr.fbcolor     := 'red';
          srw.attr.bbcolor     := 'blue';
          srw.attr.bordpatt    := 'checker';
          srw.attr.ffcolor     := 'yellow';
          srw.attr.bfcolor     := 'green';
          srw.attr.fillpatt    := 'crisscross';
          srw.set_attr (0, srw.attr);
       end if;
       RETURN(TRUE);
    end;Hope this helps..
    -Marilyn

  • How can i change bookmarks text colors, not toolbar text color.

    I know how to change color of toolbar text but still want to change the text color of bookmarks.

    You can experiment with code like this in the userChrome.css file.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .bookmark-item > .toolbarbutton-text {color:#000!important; background-color:-moz-dialog!important}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration

  • Background color of disabled text field?

    In my JClient app, the background color of text fields changes when they are disabled (which is good). But I can't seem to figure out where the color it's background is being set to comes from...not from the text field. Maybe somewhere in the look-and-feel? Anyone have any ideas?

    Found the fix for my problem (again, as usual):
    The problem is with the windowsXP look-and-feel. There is a patch, see winlaf:
    https://winlaf.dev.java.net/release_0.3.html

  • Changing field text color and fill based on input value.

    I am trying to create a field that can be red, yellow or green.  In the end, what I need is a box that can be made red, yellow or green by the form user.  My strategy is to use a validation script to change the field and text color based on the field input.  So if you type "red", the text and field turn red, essentially making a red box.  The field is named "GoalColor".
    Am I headed in the right direction to get make this dynamic colored box?
    This script works but you must type "red" into the field(including quotation marks).  Any ideas on why the word red alone isn't triggering it? 
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == "red") {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    I have also tried - works if you type 'red'
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == 'red') {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    and  - does not work
    var vcolor = this.getField("GoalColor").value;
    if ( vcolor == red ) {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    Thanks!

    And you don't need to add the quotation marks in the text field. In fact, doing it will cause the script not to identify the word.

  • Acrobat Professional 8 Text Color Problem

    I have a question regarding Text Field Tool In Acrobat 8. I've tried a couple different things and nothing seems to work, I've looked through a bunch of questions on the forum and couldn't find exactly what I'm looking for - if anyone can help I'd be greatly appreciative!
    I'm a designer and I'm trying to change the text color in an editable field for a client. The way I've designed the entire flier is for the text to be a specific color blue (C100 M45 Y0 K37 or R0 G58 B111 (- I know you can't ad a PMS color)) and I'd like to keep the editable field the same color.
    I've tried both the "Properties" (Apple-E) and I've tried "right-clicking" --> Properties --> "Apperance" --> "Other text color" and here's where I think the problem lies. I can't pull down any menus within the "Colors" Palette? I can move the Gray Scale Slider (but can't change to a RGB or CMYK slider?). I can pick from the "Apple" List, the Image Spectrum, Color Wheel or a crayon color. It looks like these are all prepicked colors and I can't add my own. I know I can't do a PMS color but I thought I'd be able to specify a specific CMYK or an RGB color? Is this just not possible or am I doing something wrong? Please help, thanks!!!

    HI. I've run into this same problem - not being able to change color modes to define a new color swatch in the color palette in acrobat 8/9. One way that I've been able to work around it is to open TextEdit, pressing command-t to show the fonts palette and then pressing the Text Color button within the fonts palette. This will cause the color palette (the same one used by Acrobat I believe) to open. From there, the pulldown menus are accessible, allowing me to create a CMYK swatch. Once I enter the proper percentages for the desired color, I can drag the main color swatch to the swatches section at the bottom of the color palette. Once the swatch is there, it will be available in Acrobat as well.
    Another thing that I've noticed is that when using the color palette in Acrobat, if you choose a swatch that was defined using the CMYK slider from the swatch section, the color palette interface will change to the CMYK slider interface, allowing you to alter the color in Acrobat. This seems to be the quickest way to bypass the non-responsive color palette dropdown menus.

  • CS3,CS4,CS5 - Text Color

    Hi,
    I am trying to dynamically change text color.
    My text boss is defined as:
    Class
    kColorStaticTextBoss,
    kStaticTextWidgetBoss,
    IID_IUICOLORSPEC, kUIColorSpecImpl,
    and type:
    type ColorStaticTextWidget (kViewRsrcType) : StaticTextWidget (ClassID = kColorStaticTextBoss)
         UIColorSpec;
    To change the text color I obtain a pointer to the implementation of IUIColorSpec. Calling SetTextColorID on the object works fine using the predefined color scheme, however I need RGB values and SetTextColorAGM silently fails. I really hope someone can help on this one
    Thanks
    Kind regards Toke

    I found that the following worked:
    Provide my own implementation of IID_ICONTROLVIEW.
    Have my implementation class inherit from CStaticTextView.
    Override CStaticTextView::GetTextColor().

  • Changing Label text color based on some conditions

    Hi,
    I have these labels and I would like to change the text color IF the text has some specific value (coming from an XML created by a program); for example the default text color is red, but if the text value is "Yes", the text color should be green.
    Any helps much appreciatted, as usual...
    Thanks.

    unsure, but you might be able to get away with something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                public function changeColor(value:String):uint
                    if(value == "Yes")
                        return 0x007F00;
                    else
                        return 0x7F0000;
            ]]>
        </mx:Script>
        <mx:Panel x="343" y="199" width="250" height="200" layout="absolute">
            <mx:Label id="lbl1" text="Yes" color="{changeColor(lbl1.text)}" x="102.5" y="10"/>
            <mx:Label id="lbl2" text="BlahhhhhBlahhhh" color="{changeColor(lbl2.text)}" x="97" y="36"/>
            <mx:Label id="lbl3" text="Exampleeeeeeee"  color="{changeColor(lbl3.text)}" x="97" y="62"/>
        </mx:Panel>
    </mx:Application>
    using a single label in an item renderer, passing across the 'data.text' value

  • How to set Disabled Text field's Background color

    We have an Applet application which we are running with Java Plug-in 1.5.0_11. We have Grey back ground for all the pages. When the text fields are in editable mode the text color is in black. When they are in non editable mode the text color changes to opaque green (with grey background page color) which is hard to read.
    The same application with Java Plug-in 1.4.2_13 did not had this color problem. When text fields were disabled they appeared as dark grey which was easy to read.
    We are using
    import javax.swing.JTextField;
    Is it a bug in newer Java Plug-in? Is there a work around for this?
    Thanks for any help and suggestions

    Solved this myself by writing a programmatic skin and set it to LinkButton's disabledSkin.

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • Change font color in the Text Field of a Popup Key LOV

    Hello,
    I have a question concerning Popup Key LOV.
    I want to change the font color in the Text Field of the Popup Key LOV Item.
    I searched the forum but I cannot find an answer about this! Although I searched the CSS and the Popup Key LOV Template, but I do not know where to modify the font color.
    Has anyone an idea how to solve that problem?
    Regards,
    Tim

    Hey,
    thank for your reply!
    I use style="color:#000000;" and it work in Firefox, but not in Internet Explorer 7.0!
    And that is not the first time, that there are differences in displaying those tags in the HTML Form Element Attributes and in css files, etc.
    Does anybody know I to solve that?
    Thank you,
    Tim

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • 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?

  • HTMLD_ITEM.DATE_POPUP  - Disabling text field AND Datepicker.

    Hi all,
    Need help with the following.
    I am using APEX 3.2.100.12 (this is in production and won't be upgraded soon).
    I have a report, that creates dynamically date_popups.
    My query goes like this:
    select
    case
    when trunc(ddc_delivery_date) <= trunc(sysdate) then HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'DISABLED')
    else HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
    end as "Example"
    from Table;
    Let's assume all those names there work as it is.
    The first "when trunc... " should show the date_popup item, but should be shown disabled; which totally happens, but only on the text field; I also need the datepicker to be void or something, and no popup be allowed to show up, something like: "('IP_CLOSED_DATE').parentNode.nextSibling.firstChild.href="javascript:void(0)", which can be used to not allow a popup be displayed.
    The thing is, I've tried to add another parameter (as I've seen it is possible), including words like disabled, void, 0, etc... and none of them work. So I would like to know if anyone has encountered the same issue and has been able to solve it.
    What I need, is not only the text to be disabled but also the popup.
    Thanks a lot!!
    Jorgelina

    Just noticed that you are on apex 3.2 and that JS code relies on JQuery(builtin to Apex 4.0)
    So we ll try another approach and this does not use any JS
    From your report query, I can see that you column has to be read only when <u>trunc(ddc_delivery_date) &lt;= trunc(sysdate)</u>. In this case you want those row's column to be a readonly text-field. So <b>we use a different API in those cases, i.e APEX_ITEM.TEXT instead of APEX_ITEM.DATE_POPUP</b>
    select
        case
        when trunc(ddc_delivery_date) <= trunc(sysdate) then
            HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.TEXT(2, TO_CHAR(<date column>,'dd-MON-yyyy', 10, 11 ,'read_only="read_only"')
        else
           HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
        end as "Example"
    from <table>;
    Note: Change <date column> to the name of the date column whose value has to be shown
    For readonly date row columns, you would see a text field alone, without a date picker

Maybe you are looking for