diff --git a/lib/Form/Widget.php b/lib/Form/Widget.php index 6caa4db161..70c37e2211 100644 --- a/lib/Form/Widget.php +++ b/lib/Form/Widget.php @@ -79,9 +79,9 @@ class Widget extends \WP_Widget { endpoint: 'forms', action: 'create' }).done(function(response) { - if(response.result && response.form_id) { + if(response.data && response.data.id) { window.location = - "" + response.form_id; + "" + response.data.id; } }); return false;