I have a parent form and a datatable (SPDataTable1), and when parent form status dropdown value is changed to "Closed", if SPDataTable1 datatable status dropdown DOES NOT say "Completed" (for any items in the table), then a data validation comes up that says "All Sub-tasks must be completed before the parent form can be Closed".
Can someone please explain how I can do this? Thank you.
@mnikitina thank you for the correction. Unfortunately it's still not working. Perhaps it's because I'm trying to do it on a Wizard form?
When user changes parent form status to 'Closed - Resolved' with a datatable status still 'Open', they're allowed to save and close the wizard form. I sent a PM of the console errors. Thanks.
Your code has multiple errors that are not related to the validation. Please comment out all code except the code that validates the Status field, to make sure it works.
Then, debug the rest of the code. You can find the instructions in this post: