Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @patoel,

    I hope you are doing well today!

    I have created an example form for you, which you can import from https://pastebin.com/5NJsw2a1

    You can find more info on how to export the form here : https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Kind regards,
    Zafer

    Thread Starter patoel

    (@patoel)

    Hi Zafer,

    Thanks I just try in preview and its look like what I mean, but its using 2 field right? is it can be used one field? so the result just would be get from text-2 field, and the result would be companyname.vidcalls.com

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @patoel,

    Unfortunately, there isn’t a solution that could be suggested out of the box. We have pinged our developers to see if a quick workaround could be provided and we’ll update you here once we have more feedback on this as soon as possible.

    Kind Regards,
    Nebu John

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @patoel,

    We have worked on a custom code that should help with a similar solution that we have provided.

    <?php
    add_filter( 'forminator_prepared_data', 'wpmudev_merge_text_field_val', 10, 2 );
    function wpmudev_merge_text_field_val( $prepared_data, $module_object ){
    	if ( $module_object->id != 350 ) { //Please change the form ID
    		return $prepared_data;
    	}
    
    	if ( ! empty( $prepared_data['text-2'] ) && ! empty( $prepared_data['text-1'] ) ) {
    		$prepared_data['text-1'] = $prepared_data['text-1'] . $prepared_data['text-2'];
    	}
    
    	return $prepared_data;
    }

    The code mentioned above will merge the value from “text-2” with “text-1” before saving the submission into the database. To implement this, you will need to replace the form ID “350” in the given code with the ID of your specific form. The code could be added using a mu-plugin, I hope the following guide comes in handy: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    I hope that helps. Please feel free to get back to us if you need any further clarification.

    Kind Regards,
    Nebu John

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @patoel ,

    We haven’t heard from you for 4 days now, so it looks like you no longer need our assistance.

    Feel free to re-open this topic if required.

    Kind regards
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Before or after input’ is closed to new replies.