This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copyemailclear(){ | |
var file = DriveApp.getFileById('Orignal File ID'); | |
var destFolder = DriveApp.getFolderById("Destination File ID"); | |
var todaylong = new Date(); | |
var today = todaylong.toISOString(); | |
var name= "new file name "+today; // Add a date string to the end of the file name | |
var new_url = DriveApp.getFileById(id).makeCopy(name, destFolder).getUrl(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* Add transaction ID to forms with this field after a payment is processed | |
***/ | |
add_action( 'gform_post_payment_action', 'save_transaction_id', 10, 2); | |
function save_transaction_id( $entry, $action ) { | |
$id = rgar( $entry, 'id'); | |
$trans_id = rgar( $action, 'transaction_id' ); | |
$trans_form_id = rgar( $entry, 'form_id'); | |
$trans_field_id = ''; |