I need help with Client side Scripting

I need help

Like Take an example of

two parent groups

Subject ->> Sub 1 , sub 2

Exam Subject ->> Subject_1 and so on… But I want sub 1 and sub 2 in this field to be selected

Can you maybe give more information? As far as I understand it you want to select multiple ‘subjects’ for ‘exam subject’. In that case you may be able to use the ‘Table MultiSelect’. This is sort of a link field but with the ability to select multiple values.

More information: https://docs.erpnext.com/docs/user/manual/en/table-multiselect-field