Update the page state value

I want to allow user to enter either one employeeId or many employeeId separated with commas and store it in list of strings and when user submit i want to send that list as payload to my api call. I know how to send when i just have to input one string. But i want to store all strings separated by commas in list. How to do this. Below is the format i would like to enter in textfield and store all ids in list in page state.

2
2 replies