Hello everyone,
does any one know how to add validation to a purchase order?
I would like to show a confirmation popup before submitting the PO if the cost of the PO is $0.00.
k
Kris Wood
10/04/2019, 6:11 PM
Add the confirmation popup to onSave in the client script, then in the return for onSave put the true/false value of the confirmation popup input.
s
Santosh Reddy
10/04/2019, 6:12 PM
how do I attach the client script to a Purchase order?
k
Kris Wood
10/04/2019, 6:12 PM
If it returns true (the user clicked yes) it'll save the PO. If it returns false (the user clicked no) it won't save and will return the user to the form.
Kris Wood
10/04/2019, 6:14 PM
You would need to write a client script, then deploy it to Purchase Orders. Alternatively, you might be able to get the same effect using a workflow.
s
Santosh Reddy
10/04/2019, 6:17 PM
Thanks @Kris Wood. I would follow the deployment approach.