2 Replies Latest reply on Mar 11, 2018 2:16 PM by damercer6372

    How to configure a callback javascript function for a EchoSign Widget?

    emdanielsan Level 1

      Hello everyone,

      I want to do something technically very simple but I cannot find the way to do that in the documentation.

      I want to configure one of my javascript functions to be a callback for my EchoSign Widget.

      In this way my code will be able to know that the user has signed the document and I can redirect the page to another one.

      Adobe Sign@

      I'm creating the widget via PHP using the official example code as follows:

          $file = EchoSign\Info\FileInfo::createFromFile($filepath);
          $widget = new EchoSign\Info\WidgetCreationInfo('Test personalizeEmbeddedWidget', $file);
          $widget->setMergeFields(new EchoSign\Info\MergeFieldInfo($merge_fields));
              $result = $api->createEmbeddedWidget($widget);
              $js = $result->embeddedWidgetCreationResult->javascript;
          }catch(Exception $e){
              print 'An exception occurred:';
          print $result->embeddedWidgetCreationResult->javascript;