Script help

Script help


Hi!

I will like to show in a field in Form A all the value (string) that I have in a specific field in form B.

The main idea is:

if field1A in Form A is == field1B in form B
show in the field 2A all the values find in field2B of each record of form B 


I try with this script in Form Actions > On Edit > On Load

x  =  FormB [(1B== input.1A && ...other conditions];
input.2A = x.2B;

(Field 2A and 2B are multiline)

On edit Form A the result is that I see only one value take from only one record of Form B.

How can I show in field 2B the values of each records in Form B satisfaying the condition?

Is my approach correct? Can you suggest a better way to achive the same result?

Thank you in advance for your suggestions

Lucia