Create records in one form from a multiselect lookup field from antother

Create records in one form from a multiselect lookup field from antother

Wonder if someone can help;

I am trying to find a way to select some records from one form and then use these to create new records in another form.

At this point I have created a stateless form with a multiselect lookup for my unit "serial number"s and an action button.

I have then tried to create a script for the button;

1    for each key in input.Serial_Number
2   {
3        insert into test
4        [
5            Added_User = zoho.loginuser
6            Serial_Number = input.Serial_Number
7            Concern = input.Concern
8        ]
9    }

But I get the error;

Error at line : 6
Expected String Expression, Found STRINGLIST Expression for 'Serial_Number'

tried to find info on forms etc to tell me how to complete a specific action for each selected item in the multiselect list but no joy.

Any help greatly appreciated