Color of Disabled field

Whenever i disable the field its color fades. How can i select the dark color for disbaled field?

You shouldn't be using the disabled field attribute for fields that are display-only.
We use a different background color for updateable items (white), while display-only fields usually get the same background color as the canvas, which is always a light color, so the black text shows just fine.
And we allow users to click into display-only fields, so our form will highlight the background (yellow), in case they want to bring attention to the field, say while they are discussing the screen with someone.
We only use the disabled property in rare occasions, when a field is truly disabled, indicating some process is not available.

Similar Messages

  • 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

  • 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

  • Having trouble disabling fields form in LiveCycle 8.1.2

    Hello,
    I have been working with live cycle for 3 weeks now and I need to edit a form to be dynamic so that a user can select a check box and certain fields are available depending on what's selected.
    ex: is user checks oper_bird than txt field oper_secur_id is available to be written in.
    I have set the fields to "readOnly" initially and I am now having problems with JavaScript to disable the fields.
    I have read the documentation on the differences between AcroJS and XFA and I am still confused. The form is set to dynamic and
    Heres the code I'm trying to get to work (I am using it on a radio button to enable or disable a txt field for testing):
    // Function to enable form fields
    function EnableField(cFieldName)
    // First acquire the field to be enabled
    //var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    //if(event.target.rawVaule == 1)//oFld)
    //{ // Next acquire the hidden field with the normal colors
    popup()
    //var oNmlFld = xfa.form.F.resolveNode("$..NormalColorsFld")
    //if(oNmlFld)
    //{ // Make field interactive
    $oFld.access = "open";
    // Restore Normal Colors
    $oFld.fillColor = oNmlFld.fillColor;
    $oFld.borderColor = oNmlFld.borderColor;
    $oFld.fontColor = oNmlFld.fontColor;
    // Function to disable form fields
    function DisableField(cFieldName)
    // First acquire the field to be disabled
    var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    if(oFld)
    { // Make field Read- Only
    oFld.access = "readOnly";
    // Set Grayed out colors
    oFld.fillColor = "192, 192, 192";
    oFld.borderColor = "171, 171, 171";
    oFld.fontColor = "125, 125, 125";
    I removed some of the conditionals to see if the events were happening. The code is in "Init" and the functions are called respectively in the "mouseUp" for "enable" and "disable"
    Thanks for the Help

    Okay, heres where the problem stands now:
    I disabled the fields, made them "readonly", however I can not reactivate the Fields to bring them back into a "User Entered - ..." value after setting them to "readonly". I know I am getting the calculation script to work because I am changing the colors of the field depending upon input.
    WorkflowUser could you you still want to take a look at the script? if you want to of course.
    Thanks again.

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • Color  for a Field in alv output

    Hi All,
    I use a field in the ALV grid output which needs to display color (red or green) depending on certain validations. Please tell me how to display color for this field. The program uses oops.
    Thanks.

    Hi
    1. add one more field to ur final internal table say COLOR(4)
    2. in layout wa_layout-style_fname = 'COLOR'. " if its grid
    wa_layout-style_fieldname = 'COLOR'. "if its list
    3. read table itab index 3.
    itab-color = 'C410'.
    modify itab index 3
    4. see program SHOWCOLO for all color codes
    1. Add a field of data type CHAR(3) to the internal output table.
    2. Enter the color code in the appropriate field of the row to be colored in the internal
    output table:
    Code: 'Cxy'
    C = Color (all codes begin with 'C')
    x = color number ('1' - '9')
    y = highlight ('0' = off, '1' = on)
    3. Assign the internal output table color code field name to the IS_LAYOUT importing
    structure IS_LAYOUT-INFO_FIELDNAME field and pass this structure in the ALV call
    interface.
    To enable row coloring, you should add an additional field to your list data table. It should be of character type and length at least 4. This field will contain the color code for the row. So, let’s modify declaration of our list data table “gt_list”.
    you should fill the color code to this field. Its format will be the same as explained before at section C.6.3. But how will ALV Grid know that you have loaded the color data for the row to this field. So, you make it know this by passing the name of the field containing color codes to the field “INFO_FNAME” of the layout structure.
    e.g.
    ps_layout-info_fname = <field_name_containing_color_codes>. “e.g. ‘ROWCOLOR’
    You can fill that field anytime during execution. But, of course, due to the flow logic of screens, it will be reflected to your list display as soon as an ALV refresh occurs.
    You can color an entire row as described in the next section. However, this method is less time consuming.
    Coloring Individual Cells
    This is the last point about coloring procedures for the ALV Grid. The procedure is similar to coloring an entire row. However, since an individual cell can be addressed with two parameters we will need something more. What is meant by “more” is a table type structure to be included into the structure of the list data table. It seems strange, because including it will make our list data structure deep. But anyhow ALV Grid control handles this.
    The structure that should be included must be of type “LVC_T_SCOL”. If you want to color the entire row, this inner table should contain only one row with field “fname” is set to space, some color value at field “col”, “0” or “1” at fields “int” (intensified) and “inv” (inverse).
    If you want to color individual cells, then for each cell column, append a line to this inner table which also contains the column name at field “fname”. It is obvious that you can color an entire column by filling this inner table with a row for that column for each row in the list data table.
    Reward points if useful
    Regards
    Anji

  • Change color of key field in salv_table

    Hello,
    this is my first post in scn. This community helped me a lot so far.
    Now i have a problem with the SALV. I can change the color of normal fields but not of key fields. I changed the attribute like this:
    INCLUDE <color>.
         lv_col-col = col_negative.
         TRY.
             lo_column ?= lo_columns->get_column( 'AUFNR' ).
             lo_column->set_key( ' ' ).
             lo_column->set_visible( 'X' ).
             lo_column->set_edit_mask( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    TRY.
             lo_column ?= lo_columns->get_column( 'RSDAT' ).
             lo_column->set_key( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    He get the correct column and changes set_key from 'X' to ' ' but the color is still blue. Maybe anyone has an idea what to change on the column object.
    Thanks in advance

    Hi Marco,
    Try to change the key field to normal like this :
    lo_column->set_key( if_salv_c_bool_sap=>false ).
    Regards,
    Tanmay

  • How to disable fields in Table control???

    Hi
    How to disable fields in Table control??? I want to disable particular row in table control when enter datas are correct.lets take as example ME41 or ME51 table control.
    Can anyone tell how to do disable in this table control
    Points will be rewarded if its helpful.
    Thanks
    senthil

    If you want to disable the row then you can use
    in pbo module create a module in side loop,
    loop at itab with control tc.
    module change_screen.
    endloop.
    in module,,,,,
    loop at screen.
    if condition.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    Regards
    Vijay

  • Using Javascript to disable field "Planned"

    Hi every one,
    I want to use javascript to disable "Planned" checkbox in Project Server 2013 because we want that user can not see this planned time and be confused with the Project Server's automatic changes for the planned time.
    <script type="text/javascript">
    document.getElementById("Ribbon.ContextualTabs.MyWork.Home.ShowHide.PlannedWork-Medium-checkbox").checked = false;
    </script>
    I found this code in this subject :
    http://social.technet.microsoft.com/Forums/projectserver/en-US/0beeed2d-bebc-4217-981a-41b1252c7cc2/disable-field-planned-in-timesheet?forum=projectserver2010general
    But I don't understand where to use it. If i create a custom webpart with this code, I've got a null exception when the page is loading.
    So, can you help me ? Maybe I need to use it in an other file ?

    Hi Patmol6,
    Basically, to add javascript to a PDP (or timesheet page for instance), 
    edit the page
    add the content editor webpart
    set it as hidden
    copy paste the code
    Note that you can also point from the content editor webpart to a js file embedding the javascript code
    Here are few examples (some are in PS2007, but the process is similar): 
    http://epmsource.com/tag/content-editor-webpart/
    http://badalratra.wordpress.com/2013/05/04/how-to-disable-pdp-custom-fields-using-javascript/
    http://badalratra.wordpress.com/2013/02/03/javascript-code-to-add-custom-descriptions-underneath-project-field-on-the-pdp-page/
    http://epmcorner.wordpress.com/tag/content-editor-web-part/
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Why I cannot process a disabled field when using htmldb_item

    I have a report that has this in the select statement
    case when c.sec_lic_status in (1,2,7,505,1002,1004,1005) then
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20)
    else
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20,'disabled')
    end "Quantity 1"
    The above shows correctly. If there are 2 records one field is disable and the other is enabled.
    I have a process that fires on submit - after Computations and Validations. But the records don't changed when updating the enabled one.
    In debugging and writing to a file using the UTL_FILE package, I'm able to pinpoint that the disable fields are the problem.
    Is there a trick on manually processing disabled fields?
    I've found that when I uncheck the show box in the report, I cannot use the fields either. This is not a problem, just another comment.
    My main problem is what do I have to do to manually process a disabled field.
    Thanks for your help, comments, pointers, or anything that could help me or give me ideas.
    juan

    Juan - HTML items with the disabled attribute are not POSTed with the form so your after-submit processes never see them. Try 'readonly="readonly"' instead. Others may be able to suggest how to also give those cells a greyed-out appearance.
    Scott

  • Disabling fields in subscreen

    Hi,
    I have a main screen '9970' and subscreen '7300'.
    The subscreen '7300' is also a subscreen of some other screen say '9000'.
    Now I need to disable the fields of '7300' only when it is called from the main screen '9970'. When i disable in fields in PBO of subscreen , then it will be disabled in screen '9000' also.
    Is there any way to disable fields of subscreen from the main screen '9970'.
    I tried the following in PBO of main screen
    LOOP AT SCREEN.
    If Screen-name = 'SCRAREA1'.
                SCREEN-INPUT = '0'.
          MODIFY SCREEN.
          ENDLOOP.
    ENDLOOP.
    ps: call subscreen SCRAREA1 using <prog-name> <screen-no>
    SCRAREA1 is the name of the subscreen area.
    But the above code is not capturing the subscreen area name at all..
    Anyone please suggest..
    Thanks
    Hemalatha

    Hi,
    In The main screen 9000 and 9970 pass the screen number to a global variable before calling subscreen 7300.
    In PBO of 7300 chek the variable to know if it has been called from the desired main screen say 9970. If yes disable it and pass another indicator say dibale  = X.
    Return to main screen.
    In the PBO of the Main screen check the variable DISABLE and grayout the fields you want.
    IMPORTANT.
    If you are doing CALL SCREEN 7300 from 9000.And then a LEAVE TO SCREEN from 7300 after processing, you will not go to the PBO of 9000. Control will execute the flow logic of 9000 after the CALL SCREEN statement.
    Let me know if any issues.
    Thanks,
    Vivekanand

  • Need to Disable field in Table maintenance generator

    Hi Frds,
    I have created a custom table .But i stuck at one point. In the TMG one field is User ID and next field is filled with Full name of this User ID(made it noneditable). To get user name i implement '01' event in TMG. and its working fine. But when i change the user ID in the row ramdamly the user name is not updated. its because Event not trigger.
    Please help me by giving valuable suggestion either of two query.
    1) When any row field value get change. Which TMG event trigger and capture the changed row
    2) How can i make field disable once it get filled and saved.
    Thanks
    Imran

    Hi,
         When you create any entry in TMG event get occurred is 05 and if you are changing any row content than you have to use 01. And if you want to disable fields ,double click on overview screen number which is you have given when you created TMG and than it opens flow logic of screen than click on Element List tab and uncheck the fields which you wants dsiable in input column as i am attaching screenshot have a look at it.
    in this user ID is unchecked.
    Regards,
    Shahezad

  • How to set a value to a disabled field in an B1 screen ?

    Hi,
    Can anyone tell me how to set a value to a disabled field in an existing screen.
    For example , I want to set a value to the Paid/Credited field in the Sales - A/R Invoice screen, which is a disabled field.
    I tried setting the field as enabled but it throws an error.
    Thanks in advance
    Mina

    It depends on the business process required for generating the invoice.  (What is this process just now?)
    I can think on quite a few ideas, but can't be sure if any of them will match your specific requirements.  I'll list a few here and see if any of them might work, or at least generate some new ideas for you. (Unfortunately you can't change an existing payment object to add an invoice to it at a later date, nor is the reconciliation process exposed through the SDK.  This limits your options a bit.)
    1) Is there a need for a separate delivery and invoice?  Would skipping the delivery process and using the standard Invoice + Payment screen work for you?  Stock would be issued, invoice created and payment matched directly to invoice without any work.
    2) This might apply if the invoice is simply a one for one match with the delivery.  Rather than just generate a payment in the delivery screen, generate the invoice and a payment at the same time.  The standard invoice screen will then show it as paid.  You can control the dates on the invoice raised through DI code.
    3) Where do you write the Paid Amount to?  How is it not available in the invoice screen?  Put it somewhere accessible and write it to the user field.
    John.

  • Where do I hide the color in form fields in Acrobat DC?

    Where do I hide the blue color in form fields in Acrobat DC?

    Hello Jeady,
    George's JavaScript suggestion is a good answer.
    You can also turn on form field highlighting via a menu item as you could via the button in the blue bar in Acrobat XI.
    In Acrobat DC, do the following:
    1. Open your form.
    2. Select the Prepare Form tool.
    3. In the right-hand pane Prepare Forms tools, click the dropdown for More.
    4. On the More menu, select "Highlight Existing Fields" to toggle the setting.
    The setting sticks until changed for all forms open in Acrobat.
    Regards,
    Charlene

  • Disable field highlighting?

    Good Morning,
    Working on a form that will be distributed to a number of users.  The form utilizes a lot of scripts to highlight fields that require attention.  The form works/shows well when the preset "highlight fields" is turned off (currently done manually).
    Is it possible to disable field highlighting using a script or by changing the preferences so that when the document is opened, the form fields are not highlighted?  During testing, the "highlight fields" option is turned on by default on other users machines.  I searched on the Internet and came across the following:
    Layout: Ready event
    app.runtimeHighlight = False
    Can this be used and if so, where would it be entered (hopefully not in every field).
    Thanks

    Thanks for the response.
    Form is created using Adobe Acrobat 9.  I put the code in the page properties of the the first page of the document as an action.  Doesn't seem to work.
    Any other suggestions?

Maybe you are looking for

  • Help needed - beginner Java programmer using SUN JDK1.5.0

    I have three intacting classes called CalculatorInterface.java which calls methods in Client.java and Account.java. CalculatorInterface-->Client (arrays of objects) c[ ]-->Account (arrays of objects a[ ] linked to c[ ] The problem description : I hav

  • External Hard Drive showing in Disk Utility - but not desktop.

    A little background: Yesterday, I moved my shelf where I have my modem, Airport Extreme, Airport Express and an external HD connected to the extreme to be a wireless HD for all users to access. Everything worked great - no problems whatsoever. Proble

  • Blocked account, and can't update credit card. Painful - please help!

    My account is now blocked, after making a payment on June 11th.  Cannot email or call support.  Any help or ideas? Bob

  • Dangling Connections

    Hi all, The connectivity program that i used for my application is as follows: public Vector selectQueryReports(String serverid, String dbName,String query){      Connection conn = null;      Statement  stmt = null;      ResultSet  rs   = null;      

  • Why won't my HDMI output work after update my iPad to iOS6?

    After updating my iPad to iOS6 it won't play my videos on my tv via HDMI cable. The tv displays "invalid format" I don't know how to chnage the display settings on the iPad because maybe there are none. Is there some backdoor way to change the settin