CA Service Management

  • 1.  How can I determine if the request is in the cart

    Posted 03-09-2015 04:57 AM

    Hello,

     

    we build some forms, where for example the date field is prepopulated with the actual date. The customer can of course change it afterwards.

     

    My problem now is, that the script not only preset the field during requesting a service but also when its already in the cart. How can I determine that the request is already put into the cart?

     

    Cheers

    Chris



  • 2.  Re: How can I determine if the request is in the cart
    Best Answer

    Posted 03-09-2015 06:07 AM

    I helped myself out... and to be honest it was really easy :/

     

    within the script you can use _request.status which returns the actual status of the request. As long as the request is not put into the cart the status is -1 and afterwards bigger than 0.

     

    Cheers Chris



  • 3.  Re: How can I determine if the request is in the cart

    Posted 03-10-2015 12:15 PM

    Thanks for providing your solution to the Community. I'm sure I speak for all members when I say it is appreciated.