how to store a specific property values of multifield items as string array
I have a multifield which contains a textfield. I want to store a specific value of that textfield has an array of strings.
Below is the content structure
nameDetails (multifield)
---------item0
-----------Property name--> name and Property Value--> adobe (textfield1)
---------item1
-----------Property name--> name and Property Value--> league (textfield2)
---------item2
-----------Property name--> name and Property Value--> communities (textfield3)
I want to store the property values as a string array. Like ["adobe", "league", "communities"].
Please help me out here, how I can achieve this?