Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author doublesharp

    (@doublesharp)

    I did a bit of testing and the validation/uniqueness isn’t working for Repeater fields because of the way the data is structured internally (my plugin is grabbing the Repeater sub fields for validation (the Validated Field) instead of the Validated Field sub fields (the actual data) as there are 3 levels rather than 2. The way that the metadata key is structured is also “different” being the in the format repeater_N_field (with N being 1, 2, 3…). I assume that you want to make sure that a user can only be saved to a list of users once? Or that the list of users is unique? Or that the list and order of users is unique?

    Not sure how much work it will be to implement this but it will go on the list as soon as you give me more details on how you would use it. Thanks!

    Thread Starter alfredmanchas

    (@alfredmanchas)

    hey doublesharp, thanks for replying.

    Actually, I want exactly what you said. To make sure that a user can only be saved to a list of users once. In the project I’m working on, users can only be linked to a single post across a specific custom post type (they can be linked to a list inside a post of another custom post type tho). This way, users would be filtered out in a CPT ‘Company’ if they are already an ’employee’ of that ‘Company’. In the other hand, if I had another CPT ‘Hospital’, I would like to be able to link the user as a ‘patient’ as well. So a User could be linked to posts of different cpt, but not twice in the same cpt.

    Hope I could make it clear!

    Again, thanks!

    Plugin Author doublesharp

    (@doublesharp)

    @alfredmanchas, Version 1.2 should now support the Repeater Field containing Validated Field wrapped fields.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter a Repeater field associated with Users’ is closed to new replies.