Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ovann86

    (@ovann86)

    Hey landwire,

    I believe I made this change some time ago, most likely not long after you suggested it.

    I have however just did a major update to this plugin, so if you find it doesnt work again for your custom field please let me know and I’ll fix it up again.

    Plugin Author ovann86

    (@ovann86)

    Hey landwire,

    I just noticed that this change introduced a bug.

    If you’re still wanting to try this we’ll need to talk through what you’re changing to see if there’s another way of doing this.

    Perhaps a filter to override the 'list' == $field['type']

    Thread Starter landwire

    (@landwire)

    Hi there,
    yes, I guess a filter would work. Or just add (‘list’ == $field[‘type’] || ‘custom_field’ == $field[‘type’]). I am sure there will be other people that will added list field functionality to custom fields in GF. But I have not looked at my code for a long time…
    Also not sure if it’s called ‘custom_field’ in GF.

    Plugin Author ovann86

    (@ovann86)

    Hey,

    If you’re still looking to do this I’ve added a filter to change the field type use in the logic.

    e.g.

    add_filter( 'itsg_gf_sortable_field_type', 'my_itsg_gf_sortable_field_type', 10, 3 );
    function my_itsg_gf_sortable_field_type( $default, $form_id, $field_id ) {
        if ( 1 == $form_id && 4 == $field_id ) {
            return 'custom_field';
        }
    	return $default;
    }

    Thread Starter landwire

    (@landwire)

    Hey,
    many thanks! Will gve this a shot once I have some time.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enhancement maybe’ is closed to new replies.