• Resolved dkurth

    (@dkurth)


    I have placed the value to sort the field, but the icon to “sort” does not seem to be displayed:

    $group_field_id = $cmb->add_field( array(
    	'id'          => 'MMDListsRecord',
    	'type'        => 'group',
    	'description' => __( 'Individual Directory Listings', 'mmd' ),
    	'options'     => array(
    		'group_title'       => __( 'Record {#}', 'mmd' ), // since version 1.1.4, {#} gets replaced by row number
    		'add_button'        => __( 'Add Another Record', 'mmd' ),
    		'remove_button'     => __( 'Remove Record', 'mmd' ),
    		'sortable'          => true,
    		'closed'            => true,
    	),
      'after_group' => 'mmdlist_add_js_for_repeatable_titles',
    ) );
    

    It shows up like this: https://snag.gy/A7MKpV.jpg

    Have I set something wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nothing wrong that i can see. Based off of the info at https://github.com/CMB2/CMB2/wiki/Field-Types#group the sorting part is the two arrow buttons in the lower left corner. Do you have those appearing for you?

    Thread Starter dkurth

    (@dkurth)

    ja i just found those. I was thinking the sort would be above all the posts and would have alphabetically orients all the repeatable fields.. like in the standard post directory .

    Since i keep my forms closed with the business name visible, would have been nice to have a similar button that would have ordered them, instead of by order of entry or one by one move up a list.

    Since my fields entry forms can have hundreds of records , it would have made it easier to work with.

    You don’t know of any add on in which i could put something like this up for the field groups do you ?

    • This reply was modified 6 years ago by dkurth.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No extension I know of to do that type of thing, though I also don’t know of a huge amount of projects that have that many potential records that could use something like this either.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SORT THE REPEATABLE FIELDS’ is closed to new replies.