• Resolved nev3rmi

    (@nev3rmi)


    I created the function for this form:

    function wpf_dynamic_choices_categories( $args, $field, $form_id ) {
         
        // For field #10 in form #851, only show entries in category #37
        if ( '1551' == $form_id && '2' == $field[ 'id' ] ) {
     
            $args[ 'category' ] = '34';
     
        } 
         
        return $args;
         
    }
     
    add_filter( 'wpforms_dynamic_choice_post_type_args', 'wpf_dynamic_choices_categories', 10, 3 );
    

    to show all however, my list is empty after I apply the filter, what happen?

Viewing 1 replies (of 1 total)
  • Prashant Rai

    (@prashantrai)

    Hey @nev3rmi,

    We’d be happy to help!

    The code you’ve shared involves features from the paid version of WPFOrms. If you have an active license subscription with us, could you please submit a support ticket through the WPForms account dashboard when you have a chance? 

    From there, our support team will be able to take a closer look at your request. 

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Filter dynamic drop down not working’ is closed to new replies.