View Categories

fluentform/is_form_renderable

Description  #

This filter checks if the form is ready to render, if some condition is not met, then this filter is used to stop rendering the form.

apply_filters('fluentform/is_form_renderable', $isRenderable, $form);

Usage   #

The following would apply to all forms:

add_filter('fluentform/is_form_renderable', function($isRenderable, $form){
   return $isRenderable;
}, 10, 2);

Parameters #

  • $isRenderable (array) Render Settings
  • $form (object) The $form Object

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in FluentForm\App\Services\Form\FormValidationService -> validateRestrictions(&$fields)