I have written this code for redirecting to a different site when Approved or Rejected it is working fine but I have a mandatory field in that task list and with out filling the mandatory field also if we click on the reject and approve button it is redirecting to that URL what can i do to not work when mandatory field is not filled.


1 Answer 1


You can check within the function if the mandatory field is filled or not , have an if else condition, if filled, redirect, else return false. Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.