Require that at least one checkbox in a grid with multiple rows be checked#829797 By ewallace - Tue Mar 15, 2022 7:53 pm - Tue Mar 15, 2022 7:53 pm #829797 How can I require that at least one, but not necessarily all, checkboxes on multiple rows of a grid is selected?
Re: Require that at least one checkbox in a grid with multiple rows be checked#829799 By kirkwg - Tue Mar 15, 2022 11:50 pm - Tue Mar 15, 2022 11:50 pm #829799 If I understand correctly.... Create a setOnSubmit() - check every rows of grid's checkbox has checked or not. At least there is one checked then return true, otherwise return false (to stop submit) Wish this can help..
Re: Require that at least one checkbox in a grid with multiple rows be checked#829803 By ewallace - Wed Mar 16, 2022 2:10 pm - Wed Mar 16, 2022 2:10 pm #829803 Thank you. Do you have example code you could share?
Re: Require that at least one checkbox in a grid with multiple rows be checked#829805 By kirkwg - Thu Mar 17, 2022 11:19 am - Thu Mar 17, 2022 11:19 am #829805 https://wiki.processmaker.com/3.2/JavaScript_Functions_and_Methods/Dynaforms#form.setOnSubmit see the link above for coding examples.