This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Email Output Customization


  1. rocketmedia
    Member

    I need to modify the why a phone number is displayed in the output email from a form submission. Currently, the display uses spaces in the phone like this:

    (000) 000 - 0000

    I need to know how to modify this output so it displays like this:

    000-000-0000

    Reason for this request is to comply with mobile devices in allowing for the number to be usable. Please advise as to where and how I can make this change happen.

    Thank you.

    Posted 15 years ago #
  2. rocketmedia
    Member

    Anyone out there able to help with this?

    Posted 15 years ago #
  3. yuniar

    Edit your includes/entry-functions.php file.
    Search around line 356 for this code:

    if(!empty($phone_value)){
    	$entry_details[$i]['value'] = "($phone_1) - $phone_2 - $phone_3";
    }

    change it to become:

    if(!empty($phone_value)){
    	$entry_details[$i]['value'] = "{$phone_1}-{$phone_2}-{$phone_3}";
    }

    MachForm Founder

    Posted 15 years ago #
  4. rocketmedia
    Member

    Thank you for your help, exactly what I was hoping for.

    Cheers.

    Posted 15 years ago #

RSS feed for this topic

Reply