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?
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.
Thanks for providing your solution to the Community. I'm sure I speak for all members when I say it is appreciated.