Support » Plugin: Formstack Online Forms » Works Perfect – APIv2 is Much Better

  • Tim

    (@timnethersgmailcom)


    Form cache can be refreshed immediately to pull in new forms rather than wait an unknown period for the new form to appear in your list. With 300+ forms the old plugin was quite slow, this one loads the forms from a cache, thus loads relatively immediately compared to the APIv1.

    Overall huge improvement. I would have given it 4/5 stars because the forms aren’t ordered, but Michael who made the plugin is amazing and provided a workaround via the support thread. Quite easy fix with roughly 4 lines of code (not sure why they haven’t pushed the changes as 2.0.2).

    Formstack is a great product overall, integrating with major players. If I had to give a cost to formstack in general (not the plugin) higher than average cost would be the biggest drawback for most small businesses.

    Ignore the 1 star reviews, this plugin works just fine if you can handle 5 minutes of setup.

    • This topic was modified 7 months, 2 weeks ago by  Tim.
    • This topic was modified 7 months, 1 week ago by  Tim.
    • This topic was modified 3 weeks, 1 day ago by  Tim. Reason: Plugin got better
    • This topic was modified 3 weeks, 1 day ago by  Tim. Reason: Provided clarification
    • This topic was modified 3 weeks, 1 day ago by  Tim. Reason: added details
Viewing 12 replies - 1 through 12 (of 12 total)
  • Tim

    (@timnethersgmailcom)

    As of today, the forms will not embed at all, including previously embedded forms that were working.

    Plugin Author Michael Beckwith

    (@tw2113)

    @timnethersgmailcom would you be willing to open up a support thread so we can do some investigating?

    Tim

    (@timnethersgmailcom)

    Thanks for getting back to me. I did submit a ticket (case) also used the contact form, and contacted facebook and Tim Brown (customer success manager). I need this working, so I attack from all directions.

    Please be advised, the forms were working this morning.

    • This reply was modified 7 months, 2 weeks ago by  Tim.
    Plugin Author Michael Beckwith

    (@tw2113)

    A link to the page in question would be the best place to start, at least in regards to what support I can provide.

    Tim

    (@timnethersgmailcom)

    Hi Michael,
    About an hour after I posted my review (4 days ago), the forms began to reappear; however, I can no longer add new forms via the plugin integration.

    The site in reference is thefirstacademyDOTorg.

    Still when I go to add another form via the TinyMCE editor that pops up the formstack list of forms in a lightbox, this lightbox no longer appeared. If I look at the console log, there is an error in reference on the plugin.js that shows that the API key is undefined. When I go to the Support > Formstack, the API Key is listed. I also tried creating another API key and adding that.

    That did not do the trick. Also, from the API page on formstack, it shows requests being made. If it helps, existing forms remain in place.

    • This reply was modified 7 months, 1 week ago by  Tim.
    Plugin Author Michael Beckwith

    (@tw2113)

    You’re going to want to confirm and make sure an API key is in place on this page in your admin: /wp-admin/options-general.php?page=FormstackOptions. Should see a “Formstack” menu item in the “Settings” parent menu in your WP admin dashboard.

    Sounds like existing ones are still working though, so that’s good.

    Tim

    (@timnethersgmailcom)

    Yep, its in place. I even made and added a new one to see if the update simply needed a new key. It didn’t help.

    Plugin Author Michael Beckwith

    (@tw2113)

    Can you screenshot the console for me, so that I can see the entirety of the error as it’s appearing?

    Also just to be certain, are you on the most recent version of the plugin? Should be 1.0.12.

    Tim

    (@timnethersgmailcom)

    Hi Michael,

    When the Formstack icon is clicked in the visual view, the following appears in the console.

    Console Error on Click of Formstack icon
    https://thefirstacademy.org/wp-content/uploads/2017/04/Screen-Shot-2017-04-19-at-5.47.35-PM.png

    Yes to 1.0.12

    • This reply was modified 7 months, 1 week ago by  Tim.
    Plugin Author Michael Beckwith

    (@tw2113)

    Hmmm.

    From the best I can trace my way through this version of the code, it sounds like the plugin is getting past the empty api key issue, but it’s not finding any forms.

    To hopefully plainly speak, we make a request to Formstack API with the key, and receive a response back. With that response, we check if it was a successful response in that it was received and there wasn’t an issue with the API itself. We then fetch the intended list of forms with that response, iterate over them, and send collected values to the browser for TinyMCE to use later. It’s during this point that I think we are encountering no forms found.

    The actual error line in question is below:

    if ('no_api_key' == forms[0].text)
    

    This says that there’s no “no_api_key” index, which would not be set if we have an API key saved. However, it’s still trying to act on an empty javascript array, thus causing the error shown.

    If you could please, in the post editor when you’re seeing the error, click view source for the page. With the page source open, do a “Find” in the page for var formstack_forms and the value it’s trying to assign. I’m curious what yours is showing up as, so that we can try to harden this up.

    For example, this is one from my own local install being used to test the plugin:

    var formstack_forms = [{"name":"Test WP Form","value":"2590738-MuYscqc5zR"},{"name":"Untitled Form","value":"2636567-lwMF7vofeE"},{"name":"Untitled Form","value":"2636574-e0GRaRAlk7"}];
    

    Lastly, I wonder if it’s possible that the associated account/key simply doesn’t have any forms created yet, and we missed that edge case during the recent work done.

    Tim

    (@timnethersgmailcom)

    I should have known, our account was timing out. I seem to recall this happened with an update in the past. Good work.

    Would like to see it in text + visual view (I always swap to visual to embed, then copy it to text).

    • This reply was modified 7 months, 1 week ago by  Tim.
    Plugin Author Michael Beckwith

    (@tw2113)

    Sounds like possibly the 1.0.13 update helped here 😀

    Yeah, for some reason it didn’t dawn on me that there would be people with HUGE lists, 100+ and that a 5 second timeout wouldn’t be enough. It’s set to 30 seconds now.

    Hopefully this has taken care of all your lingering issues. However, if something comes up, start a new thread in the support forum, and we’ll get it looked into. 😀

    Thanks Tim.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Works Perfect – APIv2 is Much Better’ is closed to new replies.