gppa_form_editor_max_string_length (JS)
Description
Filter the max string length used in the Form Editor.
Usage
gform.addFilter( 'gppa_form_editor_max_string_length', 'my_custom_function' );
Parameters
maxLength int
The max length of the string. Default:
50
Examples
Set a max length of 1000.
<?php
/**
* Gravity Perks // Populate Anything // Increase Max String Length of the Form Editor.
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
*/
add_filter( 'gform_admin_pre_render', function ( $form ) {
?>
<script type="text/javascript">
gform.addFilter('gppa_form_editor_max_string_length', function(form) {
// Increase the length from default 50 to your choice.
return 1000;
});
</script>
<?php
return $form;
} );
Skip max length.
Could not fetch snippet.Since
This filter is available since Gravity Forms Populate Anything 2.0.37.