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 :
create-next-app@latest
TS
Tailwindcss
use-form-hook
yup
hookform/resolvers/yup

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

lm9cpz.csb.app/

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

Thanks

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