Forums Forums Search & Filter Pro Add info button

Viewing 2 posts - 11 through 12 (of 12 total)
  • Anonymous
    #249752

    Ok nice, this is working:

    function filter_function_name($input_object, $sfid)
    {
        $acf_name = substr($input_object['name'],5);
        
    	if(strlen($acf_name)>0)
    	{
    		$input_object['attributes']['title'] = get_field_object($acf_name)['instructions'];
    	}
    	
        return $input_object;
        
    }
    add_filter('sf_input_object_pre', 'filter_function_name', 10, 2);

    It only gives different attribute names based on the field type, for example “title” and “class title” but I wil fix that with JS.

    Thanks a lot!

    Trevor
    #249757

    Thanks for sharing. I will close this thread for now.

Viewing 2 posts - 11 through 12 (of 12 total)