ninja_forms_register_field_hiddenbox

The Ninja Forms ninja forms register field hiddenbox function.

Description

ninja_forms_register_field_hiddenbox(); 

Usage

  1. if ( !function_exists( 'ninja_forms_register_field_hiddenbox' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/fields/hidden.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_register_field_hiddenbox(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/fields/hidden.php  
  1. function ninja_forms_register_field_hiddenbox() { 
  2. $args = array( 
  3. 'name' => __( 'Hidden Field' , 'ninja-forms' ),  
  4. 'sidebar' => 'template_fields',  
  5. 'edit_function' => 'ninja_forms_field_hidden_edit',  
  6. 'display_function' => 'ninja_forms_field_hidden_display',  
  7. 'save_function' => '',  
  8. 'group' => 'standard_fields',  
  9. 'edit_label' => true,  
  10. 'edit_label_pos' => false,  
  11. 'edit_req' => false,  
  12. 'edit_custom_class' => true,  
  13. 'edit_help' => false,  
  14. 'edit_meta' => false,  
  15. 'edit_conditional' => true,  
  16. 'conditional' => array( 
  17. 'value' => array( 
  18. 'type' => 'text',  
  19. ),  
  20. 'action' => array( 
  21. 'change_value' => array( 
  22. 'name' => __( 'Change Value', 'ninja-forms' ),  
  23. 'js_function' => 'change_value',  
  24. 'output' => 'text',  
  25. ),  
  26. ),  
  27. ),  
  28. 'display_label' => false,  
  29. 'sub_edit_function' => 'ninja_forms_field_hidden_edit_sub',  
  30. ); 
  31.  
  32. ninja_forms_register_field('_hidden', $args);