NextJS issue to print on the console the selected checkboxes valuse and also i cant print the error validation message

I am using below stack :

I have array of services list and i am displaying them as check boxes inside a form s that when users check the boxes of each service then click submit , i want to print the selected values on the console and error message should be printed based on yup validations.

I have to issues which i could not solve :
1- I want to print the selected checkboxes values.
2- i want to print the error messages based on yup validation

below is my code link in sandbox

your help to solve the issue with explanation is much appreciated
I am new in Dev world


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.