CA Service Management

Expand all | Collapse all

Change Required field in runtime

  • 1.  Change Required field in runtime

    Posted 11-19-2015 01:16 AM

    Hi Team,

     

    We are using CA Service Catalog 12.7.

     

    Is it possible to change the required field true or false in runtime in javascript based on the previous radio button selected.

     

    Thanks,

    Hemalatha S



  • 2.  Re: Change Required field in runtime

    Posted 11-19-2015 02:32 PM

    Hi Hemalatha,

     

    Unfortunately it is not possible to interact with the 'Required' form field attribute programmatically via JavaScript. I could suggest creating two fields, one required and one not required, and programmatically show/hide the appropriate field depending on the user's input.

     

    Thanks,

    Jason



  • 3.  Re: Change Required field in runtime

    Posted 11-20-2015 05:02 PM

    You could create a script that would evaluate the independent and dependent fields and return true or false based on the evaluation. Call the script from the onSubmit Form Attribute.