gotrls_show_current_empty_page [JS]

Description

This hook can be used to disable showing the empty page until a selection has been made on that page. By default a page without selections will show an empty page with text “Nothing selected yet”. Use this hook and return false to disable that

Parameters

addEmptyPage| Boolean, defaults to True

formId | Int

pageNumber | Int

Return

Boolean – True or False

Usage

The below code can be used to disable showing empty pages until a selection was made on that page

Copy the below code to a HTML field inside your form or use the Code chest plugin

<script type="text/javascript">
if ( typeof gform !== "undefined" ) {
    gform.addFilter('gotrls_show_current_empty_page',function(editText, formId, pageNumber){
        return false;					
    });
} 
</script>

Since

version 2.1.0

Scroll to Top