comeodore
Forum Replies Created
-
@wpmudev-support7 Thank you very much, i solve this. Have a good day.
@wpmudev-support7 Hello again, thanks for helping me
I am not a bit clear here and need more clarification here.
I would like to use the first name (text-1) and last name (text-2) in the doc file after submitting the response in the form (pressing the Submit button or after sending the mail, it does not matter), where they will replace two variables that are responsible for every (for example fill in data2.txt ‘text-1’ and ‘text-2’ fields)
If you want to use the submitted data, you can use the following hook:
When i use dirname(__FILE__).’/data2.txt’, i cant find this file by Search
And i try another way with DIR and use this only for fill file but this is didnt work, but why? (File is empty after submit form)add_action( 'forminator_custom_form_submit_before_set_fields', function( $entry, $form_id, $field_data_array ){ // log data to data2.txt file @file_put_contents( 'public_html/jaxx.dr-weedy.care/data2.txt', "\n-------\n form_id:". $form_id, FILE_APPEND ); @file_put_contents( 'public_html/jaxx.dr-weedy.care/data2.txt', "\n-------\n field_data_array:". print_r( $field_data_array, true ), FILE_APPEND ); }, 10, 3 );
And what i must do to take something info from form to PHP argument?
@wpmudev-support7 I need to type this in function.php? I need to do something with word doc after sumbit form. And its doesnt matters when this is triggered, submit + sent email its good but trigger didnt work, i didnt see echo “Hello”
@wpmudevsupport12 It is right? Cuz its didnt work and idk why
add_action( ‘forminator_custom_form_after_handle_submit’, ‘funn’, 10, 2);
function funn( $form_id, $response ) {
$form_id = 38;
$response = 1;
echo “Hello”;
}- This reply was modified 4 years, 2 months ago by comeodore.
And second question how can i find functional for “Send” (Submit button) i need to add to him some PHP code
Hi @wpmudevsupport11, during development, I also noticed that it is impossible to take a timestamp for a form anywhere, it would be wonderful if you convey the idea of ??such an opportunity for Hidden Field, it would be wonderful, for example, for integration with Google Sheets
- This reply was modified 4 years, 3 months ago by comeodore.
Hi @wpmudevsupport11, thanks for the answer, thanks for paying attention to the developer, I found a workaround, when copying the site to a new domain, all settings are saved, the only thing is to change the path to save media files in the WordPress settings, but it would be better if I didn’t have to do such “crutches”, but it turned out that way, you can verify this by going through the file located in Google Drive
- This reply was modified 4 years, 3 months ago by comeodore.