Follow us on

Codestar Support Forum » WordPress Plugins » Codestar Framework

Group field without repeater feature?

  1. How can I use the group field without repeater feature?

    Posted 1 year ago #

  2. Codestar
    Admin

    Hi,

    You can use min, max parameters. like this:

    ...
      'min' => 1,
      'max' => 1,
    ...CopyCopied!

    another way is, hide add/clone/remove button via css.

    // add class parameter for customize
    'class' => 'hide-repeater',CopyCopied!
    // add below css code on your custom admin.css
    .hide-repeater .csf-cloneable-add,
    .hide-repeater .csf-cloneable-clone,
    .hide-repeater .csf-cloneable-remove{
        display: none !important;
    }CopyCopied!

    Regards, Codestar

    Posted 1 year ago #
  3. Thanks, but I think it may be an option

    'repeater' : false,CopyCopied!
    Posted 1 year ago #

  4. Codestar
    Admin

    Hi,

    Yes, it's good idea. I can add in next updates.

    BUT, If you want to use it without repeater, why you do not use "Accordion" field, it's same style like "Group" ? Also Accordion, Tabbed, Fieldset hasn't repeater feature.

    Regards, Codestar

    Posted 1 year ago #
  5. Thanks for support and suggestion

    Posted 1 year ago #

  6. Codestar
    Admin

    You're welcome

    Posted 1 year ago #