function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
purplepurple 

What's the most efficient way to implement a variable number of pairs of fields on a Custom Object?

So, for example I want a variable number (0 or more) of the following pair of fields on a Custom Object?

 

Colour

Brightness

 

So the Object may end up (after user intervention) with say:

{Orange, Very Bright}, {Red, Dim}

 

If I have to set the above pair up as another Custom Object then I could end up with many Objects as I have several similar requirements like this.

 

Many thanks in advance for any guidance on this

dkadordkador

You're probably going to want to use custom objects.  There's no way to have a one-to-many relationship within a single custom object.