From 31bd3837f0b6e2abb8e48ce804199008dd4c1823 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Tue, 10 Sep 2024 19:18:47 +0530 Subject: [PATCH] `gpfup-customize-select-file-button-text.js`: Added customization for Drop Files Here and Or texts. --- .../gpfup-customize-select-file-button-text.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gp-file-upload-pro/gpfup-customize-select-file-button-text.js b/gp-file-upload-pro/gpfup-customize-select-file-button-text.js index 13035d4a8..9d84b2f54 100644 --- a/gp-file-upload-pro/gpfup-customize-select-file-button-text.js +++ b/gp-file-upload-pro/gpfup-customize-select-file-button-text.js @@ -1,5 +1,5 @@ /** - * Gravity Perks // File Upload Pro // Customize the “select file” Button Text for a Specific Field + * Gravity Perks // File Upload Pro // Customize the “select file” Button Text, "Drop files here" Text, and "or" Text for a Specific Field * https://gravitywiz.com/documentation/gravity-forms-file-upload-pro/ * * Instructions: @@ -13,7 +13,9 @@ window.gform.addFilter( 'gpfup_strings', function( strings, formId, fieldId ) { return strings; } - strings.select_files = 'Select an image'; + strings.select_files = 'Select an image'; + strings.drop_files_here = 'Drag and drop images'; + strings.or = ' OR '; return strings; } );