Wix Forms: OnWixFormSubmitHookError => changes to fields are not valid

@gitaganapathy Did you try a console.log right after getting the coursename ? What value are you getting? It sounds as if the error is being thrown due to an invalid value.

let coursename = dropdownoptions[index].label;
console.log('course name', coursename); // what do you get here?