CA Service Management

  • 1.  Date Picker Validation on Service Catalog Form

    Posted Nov 11, 2016 01:43 PM

    Hello Team,

    I want to apply a javascript restriction on Datetime picker attribute on Catalog Form. The restriction should display/or allow to select the date from tomorrow onward (by default it shows/allow to select from today onward). I added the following function under onClick(property) -->  Date(new Date().getTime() + 24 * 60 * 60 * 1000); However it seems not working. May I get any help or suggestion here?

     

     

    Thanks



  • 2.  Re: Date Picker Validation on Service Catalog Form
    Best Answer

    Posted Nov 11, 2016 04:39 PM

    You need to put the expression in the 'Minimum Value' attribute of the date field. I just tested with the following:

     

    $(new Date().getTime() + 86400000)

     

    When viewing the offering from Home > Requests, 11/12 is the first date that can be selected. 



  • 3.  Re: Date Picker Validation on Service Catalog Form

    Posted Nov 14, 2016 08:34 AM

    Great! Thanks Jason. It worked like a magic. I confirm this is the correct answer.

     

    Thanks

    ArunavaS