Skip to content

Commit

Permalink
gpfup-customize-select-file-button-text.js: Added customization for…
Browse files Browse the repository at this point in the history
… Drop Files Here and Or texts.
  • Loading branch information
saifsultanc committed Sep 10, 2024
1 parent a9953b9 commit 31bd383
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gp-file-upload-pro/gpfup-customize-select-file-button-text.js
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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;
} );

0 comments on commit 31bd383

Please sign in to comment.