Skip to content

Commit 89bf46f

Browse files
committed
gf-openai-post-save-result-to-field.php: Added snippet to populate fields with Open AI generated values.
1 parent 5b51b48 commit 89bf46f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22
/**
3-
* Gravity Perks // GravityForms-OpenAI // Add support to populate fields with Open AI generated values.
4-
*
3+
* Gravity Perks // GravityForms-OpenAI // Add support to re-populate fields with Open AI generated values.
54
* https://gravitywiz.com/
6-
*
5+
*
76
* Requires 1.0-beta-1.2; or newer of Gravity Forms OpenAI.
7+
*
8+
* Instruction Video: https://www.loom.com/share/341ab02ca790461fa852eda2f8e95fbc
89
*
9-
* Instructions:
10-
* - Install using https://gravitywiz.com/gravity-forms-custom-javascript/
10+
* Instructions: https://gravitywiz.com/documentation/how-do-i-install-a-snippet/
1111
*/
1212
// Replace 342 with the form id, and 3 with the targetted field id.
13-
add_action( 'gf_openai_post_save_result_to_field_342', 'gw_openai_post_save_result' );
13+
add_action( 'gf_openai_post_save_result_to_field_342', 'gw_openai_post_save_result' );
1414
function gw_openai_post_save_result( $result ) {
1515
$_POST['input_3'] = $result;
1616
}

0 commit comments

Comments
 (0)