CA Service Management

Expand all | Collapse all

Show/hide textbox on dropdown selected value

Jump to Best Answer
  • 1.  Show/hide textbox on dropdown selected value

    Posted 07-04-2016 07:11 AM

    Hi Guits,

    I have one query, please help me to resolve it:

    I have one drop down with two values namely temporary and 2nd one is permanent.

    Now I have one requirement that, on selecting Temporary ,I need to show one textbox having name temp_txtbox and on selecting Permanent, textbox having name temp_txtbox get hide.

     

    Please give a suitable code and explain me how can i call function on change of these drop down value.



  • 2.  Re: Show/hide textbox on dropdown selected value
    Best Answer

    Posted 07-05-2016 05:11 AM

    Hi,

    There are two methods you can use to show and hide fields on a catalog form.

    ca_fdHideFields(formId, _ids), which Hides a field in the form.

    And

    ca_fdShowFields(formId, _ids), which Shows a field in the form.

    Using these two method on load using a script and on change on your dropdown you can show and hide fields base on the option selected.

    The _ids is the id of the form field you want to hide or show.

    see also Customize a Predefined Form - CA Service Management - 14.1 - CA Technologies Documentation



  • 3.  Re: Show/hide textbox on dropdown selected value

    Posted 07-11-2016 05:59 PM

    Hi caadmin - Did Sivuyile's response help answer your question? If so please mark as Correct Answer. Thanks!