PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

SMS To Users (hep! hack not working!)

  1. rajsm
    Member

    Well I just happened to purchase a PAID account of Twilio - ASSUMING it will send notifications to users when they submit the form - my mistake.. as I did not read enough :( ..

    Im not a coder bur I tried the modification of twilio.php as given by deweydb:

    public static function export_feed($entry, $form, $feed){
           $body = GFCommon::replace_variables($feed["meta"]["message"], $form, $entry);
    	   $twilioTo = GFCommon::replace_variables($feed["meta"]["to"], $form, $entry);
    
           self::send_sms($feed["meta"]["from"], $twilioTo, $body, $feed["meta"]["shorten_url"]);
        }

    The only line I added to php file at the given code is:

    $twilioTo = GFCommon::replace_variables($feed["meta"]["to"], $form, $entry);

    then I went and updated the twilio settings "To Number" with a merge code from Gravity forms using "insert merge code":
    {Phone:5}

    Well its not working - I tried filling the forms but I do not get a notification to any valid mobile number I enter..

    Can someone please help!?

    Posted 5 years ago on Friday October 5, 2012 | Permalink
  2. This hack is not supported by Gravity Forms as this was not the intention of the add-on we created. I think your best bet is to try to contact the member who wrote that hack and ask for their advice.

    http://www.gravityhelp.com/forums/profile/deweydb

    Reference: http://www.gravityhelp.com/forums/topic/twilio-integration#post-48131

    Posted 5 years ago on Friday October 5, 2012 | Permalink

This topic has been resolved and has been closed to new replies.