Skip to content

Instantly share code, notes, and snippets.

<?php
add_action("gform_after_submission_23", "add_the_home_chapter", 11, 2);
function add_the_home_chapter( $entry, $form ){
$id = gform_get_meta( $entry['id'], 'salesforce_id' );
$chapter = $entry["34"];
$api = GFSalesforce::get_api();
$fieldsToUpdate = array (