Manipulate the files uploaded via Gravity Forms before they are stored

Looks like I was using this class to do this: http://gravitywiz.com/rename-uploaded-files-for-gravity-form/ and added the filter in myself after line 207, ie. // replace merge tags $form = GFAPI::get_form( $entry[‘form_id’] ); $value = GFCommon::replace_variables( $value, $form, $entry, false, true, false, ‘text’ ); // MOD: add a filter here to hook into filename change $value = apply_filters(‘gravity_forms_upload_filename’, … Read more

Extract XML/JSON element from Zillow API response and populate into Gravity Forms field

the first step is to extract the value with this kind of code, does it work for you ? $xml = simplexml_load_string($result); $value = (string) $xml->response->results->result->zestimate->amount; var_export($value, FALSE); the next step is to put the value in the form. the Gravity Form is not free then we cannot test it and I only find that … Read more

Store GravityForm data in phpmyadmin (mysql)

You can use something like below. Basically after form submission we get the data $entry extract the values we want (in the example $val1, $val2, $val3) then insert that data into the custom table with $wpdb: add_action(‘gform_after_submission’, ‘save_to_my_custom_table’, 10, 2); function save_to_my_custom_table($entry, $form) { global $wpdb; // update for your tablename (this assumes the table … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)