gotrgf_image_choice_default_width [JS]

Description

This hook can be used to change the default width of the choice image in the summary. Default is 30px.

Parameters

defaultWidth | String (defaults to ’30px’)

form_id | Int

field_id | Int

Return

String. Return the width for the image. Can be any measurement unit but ensure to include the value and the unit. Examples: ’50px’ , ‘50%’

Usage

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" ) {
    window.gform.addFilter("gotrgf_image_choice_default_width",function(default_width, formId, fieldId){
        return "50px";						
    });
} 
</script>

Since

version 2.0.14

Scroll to Top