Skip to content

Min/max options #56

Open
Open

Description

@jancbeck

Is there a way to limit or require the number of attached posts similar as the relationship field of ACF?
I'm basically using this field in place of the post search field for the nicer UI but want the user to only select one post.

Activity

  1. mclaurent commented on Jun 21, 2018

    @mclaurent

    Hi @jancbeck AFAIK the min/max functionality has not been implemented yet but please anybody feel free to correct me as I am also looking for this.
    I created a PR for the "max-items" functionality which is waiting to be merged. #52

  2. Fiorinol commented on Jul 2, 2020

    @Fiorinol

    I tried @mclaurent 's solution and it doesn't work.

    If I add the data attribute as prescribed in the example provided, this piece results in an undefined variable:

    var maxItems = $input.data('max-items');

  3. tw2113 commented on Jul 3, 2020

    @tw2113

    I sadly don't have any sort of followup suggestion either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions