#Get options array in the validation function.

7 messages · Page 1 of 1 (latest)

radiant osprey
#

I have a array filed with select type field nested inside. I will like to know all the select options so I can loop them and check if there is any duplication.

potent sierraBOT
radiant osprey
#

I figured it. I had to use the collection object. Is there a tool that simplify that if not I would like to contribute with that.

#

I maybe can extend the CollectionConfig object to have few helpful functions.

woven raptor
#

Hey, I'm learning payload and curious how you used the collection object. Would you be willing to post a quick snippet of the use case?

radiant osprey
#

Hello Eric, I ended up not taking this route as it's hard to loop through objects as there as no unified field between all the object types. Here is my collection file.

#

If you would like a learning buddie. hit me up. I'm learning right now too.