gotrls_summary_page_edit_text [JS]

Description

This hook can be used to change the text of the edit buttons in collapsible sections. You can also add icons through this hook by passing SVG or image.

Parameters

editText| The current edit text

formId | Int

pageNumber | Int

Return

String. Return the text to output

Usage

The below code can be used to change the edit button text.

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_summary_page_edit_text',function(editText, formId, pageNumber){
        return 'Edit this step'; // Example text to show. Change this.						
    });
} 
</script>

Since

version 2.1.0

Scroll to Top