Support

Account

Forum Replies Created

  • I just created a tab of stuff that should be internal and once it hits that tab it breaks the output. So everything after the private tab is hidden. This way I don’t have to go to php anytime I add a field. Works for me in this situation.

    add_filter('acf/field_group/get_fields', 'check_acf_fields');
    function check_acf_fields($arg){
    	$x=0;
    	
    	foreach ($arg as $field) {
    		if( in_array('Internal', $field,true) || in_array('should only be internal', $field,true) ){
    			$output = array_slice($arg, 0, $x);
    			return $output;
    		}
    		$x++;
    	}
    	
    }
  • This is something I’ve really wanted for awhile, but the plugins so good I’ve been fine with the repeater as a workaround.

    I think for a first iteration I’d start small and abstract. For example, similarly to gravityforms you could include an input field for element class that applies to the parent element. That way anyone could easily add their own layout styles using bootstrap, foundation, or whatever home brew method they use. Especially since these classes would apply to the frontend form as well.

Viewing 3 posts - 1 through 3 (of 3 total)