gotrls_line_layout [JS]

Updated 14 September 2026

On this page

Description

Changes the line layout of a summary with code, regardless of the setting.

Parameters

lineLayout | String. ‘auto’, ‘inline’ (side by side) or ‘stacked’

formId | Int

type | String. ‘side’ or the field ID of a Live Summary field

Return

String

Usage

Copy the below code to a HTML field inside your form (wrapped in script tags) or use the Code chest plugin.

<script type="text/javascript">
if ( typeof gform !== "undefined" ) {
    gform.addFilter( 'gotrls_line_layout', function( lineLayout, formId, type ) {
        return 'stacked';
    } );
}
</script>

Since

version 2.2.0

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top