How to grey out column in NewForm.aspx

Good morning,
I have created a custom list.  In this list, I have a Drop-Down Column with various options and also a Text Column. 
What I am hoping to achieve is that if, for example, if Choice 3 is selected from the drop-down column, then the Text Column becomes "available".  Otherwise this column remains greyed out.
I am no master at coding so hopefully a solution that is not too complex.
Thanks!

If you're building out the form in InfoPath, you can also do this with some simple rules.
Load the form in InfoPath, and select the textbox control
Select 'Manage Rules' from the Home ribbon
Create a formatting rule for the text box as follows
Conditions = If dropdown column=blank, OR dropdown column=option 1, OR dropdown column=option 2 (see below screenshot)
Select the 'Disable this control' checkbox
I also recommend changing the color of the textbox so that it is greyed out, otherwise people could be confused as to why they can't edit the text field. You can do this in the same rule, with the paint bucket icon
(Where 'session' is your dropdown column and "Option 1" and "Option 2" is the text for your first two options.)
If you want to provide even more user guidance, you could add some text underneath the textbox which is only displayed when the textbox is disabled, saying something like "This textbox is only available when option 3 is selected". To do this, add the text
to the form and then add a formatting rule to the displayed text:
Conditions = If dropdown column=option 3
Select 'Hide this control'
Hope that helps!

Similar Messages

  • How to grey out Intel Graphic Media for local users?

    does anyone know how to grey out the options to stop local users changing graphics options from Intel media graphics for Mobile?
    As well if anyone know what is different in BIOS updates, any option to cancel booting devices (not only change order)

    Hi
    Sorry but something like this is not known to me. You can disable a lot of different functions but display properties and settings are always available.
    BTW: I do not see some problem there is someone change resolution or whatever if the resolution is high and symbols to small.
    As far as I know it is not possible to cancel booting devices.

  • How to Grey out the field "tracking number" during change mode in the order

    HI Expert,
    How to grey out the Tracking number (AFVGD-BEDNR) at Order -> Operation tab -> external tab ->tracking number.
    during creation IW31 = not grey out and allow entry.
    for change mode IW32 = grey out
    if i set grey out at config OIOPD, it will grey out even during creation mode.
    Please advise
    Thanks
    Regards

    Hi
    I think Using field selection it is not possible to make as display ,kindly check with screen or transaction variant -SHD0
    regards
    thyagarajan

  • How to Grey out cost center column in me22n screen(Account assignment tab)

    Hi All,
    I have tried many ways to do grey  out cost center column in account assignment tab of ME22N.
    i have created implementation for this class and method. 
    Class:CL_TABLE_VIEW_MM_2
    Method:PBO_TC_LINE
    Below is the my code snippet.Kindly let me know any suggestions.
    data:  l_tc type char100.
    data:  l_tabix type i.
         l_tc = '(SAPLMEACCTVI)DYN_1000TC-COLS'.
    FIELD-SYMBOLS:<fs_tcdata> type any TABLE,
                    <fs_wa> type any ,
                    <fs_lwa> type any,
                    <fs_screen> type any,
                    <fs_input> type any,
                    <fs_active> type any,
                    <fs_output> type any.
    *data:fs_wa type SCXTAB_COLUMN_IT.
       ASSIGN (l_tc) TO <fs_tcdata>.
       LOOP AT <fs_tcdata> ASSIGNING <fs_wa>.
          l_tabix = sy-tabix.
        ASSIGN COMPONENT 'INVISIBLE' OF STRUCTURE <fs_wa> TO <fs_lwa>.
           ASSIGN COMPONENT 'SCREEN-NAME' OF STRUCTURE <fs_wa> TO <fs_screen>.
           ASSIGN COMPONENT 'SCREEN-INPUT' OF STRUCTURE <fs_wa> TO <fs_input>.
           ASSIGN COMPONENT 'SCREEN-ACTIVE' OF STRUCTURE <fs_wa> TO <fs_active>.
           ASSIGN COMPONENT 'SCREEN-OUTPUT' OF STRUCTURE <fs_wa> TO <fs_output>.
           IF <fs_lwa> = space.
             CASE <fs_screen>.
                WHEN 'MEACCT1000-KOSTL'.
                 <fs_input>     = 0.
                 ENDCASE.
                 endif.
                 ENDLOOP.
    Regards,
    Hiriyappa

    As I can't see any complicated scenario in your requirement. So I suggest you can achieve this by simple standard configuration.
    Go to OME9, double click on the Account assignment category and make the field as Display.
    Then check in your PO.
    But I doubt, your requirement can not be simple like that.
    So either you didn't know the settings or your requirement is different or you are just trying to learn that can it be possible via coding.
    Let us know the appropriate reason for set it as display.

  • How to grey out terms of payment in sales order.

    Hi,
    While making sales order ,user should not make changes in terms of payment.how we  can restrict the user for any changes.
    and what is procedure for this.
    Regards,

    you can get many treads if you had searched with your subject.Anyway please find one among them.
    payment terms-greyed out field
    I would prefer going for option of activating critical field in OVA8 if Credit management is configured in your client process.
    thanks,
    Srinu.

  • How to grey out the values in checkbox?

    Hi,
    In my library application, a "borrow book" page is available. This page displays all the books available in the library in the form of check boxes, if the available count is "0" in the database, that book will not be displayed, but ideally this is not a good apporach. I want all the books to be displayed, but the books which has the available count as "0" in the database should be greyed out, by doing this the users can see all the books available in the library, but they cannot select the "unavailable books". I have no clue, how to get this done, can someone please help me to resolve this issue.

    Hi Suzi,
    I would suggest not rendering a checkbox if it is not required.
    Otherwise, add the attribute disabled="disabled" (this may not work in all browsers).
    Regards
    Michael

  • How to grey out images in APEX

    Hi,
    Can someone let me know how can I disable/greyout images in APEX?
    I have a list of images in a horizontal way, say Image 1, Image 2, Image 3, Image 4.
    So when Image 1 is accessed, Image 2,3 and 4 should be greyed out. When Image 2 is accessed, Image 3 and 4 (not Image 1) should be greyed out and so on.
    Please let me know how can this be done?

    935799 wrote:
    Hi,
    Can someone let me know how can I disable/greyout images in APEX?
    I have a list of images in a horizontal way, say Image 1, Image 2, Image 3, Image 4.
    So when Image 1 is accessed, Image 2,3 and 4 should be greyed out. When Image 2 is accessed, Image 3 and 4 (not Image 1) should be greyed out and so on.
    Please let me know how can this be done?Hi,
    What you mean by "Image is accessed"?
    Do you mean when mouse click image or hover mouse over image?
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • HR Abap - How to grey out infotype 416 'Start' date on screen 2

    Hi,
    For infotype 416 I want to force the user to enter the Start date on the initial PA30 screen. Therefore I have to grey out the 'Start' Date field that appears in the second screen '2000' when creating a record.
    Any ideas on how to do this?
    Regards,
    Warren.

    Hi,
    In order to add additional functionality and checks to the PBo & PAI of HR infotypes you need to
    implement enhancement 'PBAS0001' using CMOD . Once you
    have done this you need to go to  the function modules EXIT_SAPFP50M_001 & EXIT_SAPFP50M_002
    and create the includes within them i.e.  ZXPADU01 and ZXPADU02. You can now enhance the
    functionality of HR infotype PBO and PAI by simply adding code to these includes. See
    example below:
    HR Infotype User exits
    Include ZXPADU01 for the PBO module
    Incldue ZXPADU02 for the PAI module
    *Example code.
    CASE innnn-infty. "Infotype?
      WHEN '0001'.  "infotype 0001
    Processing code
      WHEN '0008'.  "infotype 0008
    Processing code.
             etc.
      WHEN OTHERS.
    ENDCASE.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to grey out the Account Assignment Group Fld  in Billing Doc Line Item

    Hi SD Guru's
    I have a small doubt.
    I have maintained account assignment group in material master. Now when i create an order , the account assignment group gets picked from material master into this sales order.
    Now i go to VF01 for doing the invoicing.
    Now i can still go to billing document line item against the material and change its account assignment group before raising the invoice. When i change this field, i can still post to accounts.
    I want to know is there any way in which we can restrict the way in which this field is greyed out and is made non-editable, so that only correct entries with account assignment group maintained in material master are posted.
    Answers will be appreciated.
    Kind Regards
    Ravi

    Hi,
    Sandeep can you please give me step by step process of using SHD0 in this case.
    Now if i apply this to transaction VF01 and VF02, would it apply for all billing document types? I dont want that, i want it to work for a specific billing type
    Kind Regards
    Ravi

  • How to grey out or deactivate the Conditions tab in VA01 and VA02

    Hi gurus,
    Is there a way I can grey out or deactivate the Conditions tab in VA01 or VA02?  Our objective is to attach the pricing conditons to the customer level and that no sales encoder can edit prices during encoding using t-codes VA01 and VA02?
    I also tried to solve my problem through authorization object of the user V_KONH_VKS - set to 3 (Display) but still the user was able to make revisions to the Conditions tab if he wants to.  This is an internal control issue  for our company.
    Thanks for the immediate response. 
    Frances

    Hello Francis,
    In the definition of condition types in SPRO ( T.code V/06) you can define whether a particular condition type ( example PR00) can be processed manually by the user. IF you select the option " No Manual entries" the system does not allow the users to change the condition value determined from the condition records ( Maintained in VK11).
    ALternately, if the business requirement is that of allowing a particular condition type ( example PR00) to be processed manually by the user in certain business scenarios and in others the value should not be editable then you can use the user exit in MV45AFZB " USEREXIT_SAVE_DOCUMENT". In this you can write the required logic with the help of a technical consultant.
    Hope this helps
    Warm Regards
    Prashant Joshi.

  • How to grey out Allication tool bar button of PF-status for a selection-scr

    Hi All,
    I have an urgent requirement to grey out(not to exclude) an application tool bar button in normal selection-screen PF-STATUS.
    Please let me know if any one has done something like this before.

    Hi,
    This code[mentioned in the suggested link] will deactivate the button.
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      APPEND:
               'PRIN' TO itab,
              'SPOS' TO itab.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                p_status  = sy-pfkey
           TABLES
                p_exclude = itab.
    You can deactivate Print and Save button.

  • How to grey out one single column in a table control of TPMOE

    Hi Experts,
    Any body please tell me how to greyout a single column in a table control of TPMOE.
    Help needed ASAP.
    Thanks,
    sreenivas.

    lr_result      TYPE REF TO if_bol_bo_property_access
    lr_iterator TYPE REF TO if_bol_bo_col_iterator
          CALL METHOD lr_iterator->get_by_index
            EXPORTING
              iv_index  = index
            RECEIVING
              rv_result = lr_result.
          CALL METHOD lr_result->get_property_as_value
            EXPORTING
              iv_attr_name = 'TRANSFER_STATUS'
            IMPORTING
              ev_result    = lv_status.
    if  lv_status = x and component = cost_category.
    rv_disabled = true.
    else.
    call super.
    endif.
    INDEX will have the row number.
    Frame ur logic based on this.

  • How to grey out ( make it non editable ) one line in ALV

    hi i am working on a report which is ALV o/p report .the report has some editable and some non editable fields. based on the value of 1 column field i need to make the full line non editable . how is this possible.
    please guide me.
    Thanks,
    Shiva.
    Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:07 PM

    Hi,
        Try using the structure LVC_S_STYLE.
    Declare a field of type LVC_S_STYLE in ur internal table,
    Now,in ur new PERFORM chk this code:
    ls_stylerow type LVC_S_STYLE.
    LOOP AT it_itab INTO wa_itab.
    IF wa_itab-field1(this will be the field by which u will validate) =  'X'.
    ls_stylerow-fieldname = 'FIELD2' .   "Field which you want to grey
    ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.  "set field to disabled
    APPEND ls_stylerow TO wa_itab-field_style.
    MODIFY it_itab FROM wa_itab.
    ENDIF.
    ENDLOOP.

  • How to "grey out" the checkbox GR non-valuated under ME21N - ME22N

    Hi guru's,
    Does anybody know how we can change the command box "GR non-valuated" to display?
    Default it's on, but we don't want that check box being changed by our users.
    In the customizing :  SPRO> Materials Management > Purchasing > Purchase order > Define screen layout at document level
    we can't change that field to display only, because the field isn't listed there.
    Can anybody help me any further in this case?
    Thanks in advance.
    TIm van Thiel

    All these checks are controlled by item category of PO. You can check it out in config of item category in purchasing.
    Now changing this controls as per requirement you need to use SM30 transaction to maintain table T163. This is the maintainance table available for changing item categories.
    Try as suggested and let me know the progress.
    Enjoy SAP,
    Parag Mahajan

  • How to find out Column names from JDBC?

    Hello,
    How to get Oracle's Table Meta Data without firing a "SELECT" statement and using ResultSet meta data ?
    Thanks,
    -raj

    This works for most jdbc drivers:
    Connection con = ???;
    DatabaseMetaData dbmd = con.getMetaData();
    ResultSet rs = dbmd.getColumns( null, null, "TABLENAME", null );Read the API: http://java.sun.com/j2se/1.4.1/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)

Maybe you are looking for

  • Easiest Way to Move Media from One External Drive to Another?

    My MacBook Pro only has a 500GB hard drive and I currently have all my movies on a 1TB external hard drive.  Everything works fine through iTunes, but now since the 1TB is maxed out, I'd like to use my new 2TB external hard drive going forward.  I un

  • IPhone 5c stopped turning on after IOS  8.1 update.

    2 days ago i decided to update my iPhone 5c to IOS 8.1. There was no noticeable issues with the update, but after attempting to use the phone, i did notice that the phone was not powering on. I've contacted apple support, and have done all the troubl

  • Crashing Constantly when using ripple and roll tools.

    I have faced this issue in the past, but not as constantly as it is happening now.  Every time I use the ripple or roll tool, or even if I try to avoid using them and use my mouse to extend an edit - FCP crashes.  I am hardly getting any work done, a

  • Installing Tomcat Connector (mod_jk)

    I just upgraded to Leopard (not the server version, but this seemed the most logical place to post this), and I'm trying to get everything working that was working under Tiger. I have always kept the most recent version of mod_jk installed so I could

  • Using WMV on a Website Won't Work...

    I'm trying to open a video on a website (no, not that kind of video...) and it uses WMV. So I have tried downloading it for Mac and it doesn't work. I also tried Flip4Mac and VLC but nothing is working. How do I download something to get this video t