• Hi there,

    Just trying out your plugin to check if our client can migrate from Pardot to Spotler. I activated the REST API in our Spotler account settings and generated an Authentication key & Authentication secret with the External id field dropdown set to External id (only option available).

    In the MailPlus Forms Plugin Settings I filled in my Authentication key in Consumer key and Authentication secret in Consumer secret and left the MailPlus API URL to the default: https://restapi.mailplus.nl value, is that correct?

    Saving this setting is successful, however in the WYSIWYG editor the Add MailPlus form dropdown stays empty, even after creating a test form in Spotler.

    My php logs doesn’t show any errors.
    Not sure what I’m doing wrong?

    When I test my key & secret in the Interactive API Documentation to get the form list, it does return all my forms correctly?

    I noticed that the api url is different though:
    /integrationservice-1.1.0/form/list
    instead of:
    /integrationservice/form/list

    p.s. I’m also using Root’s Bedrock

    Any thoughts?
    Thanks!

    • This topic was modified 5 years, 7 months ago by Twansparant.
    • This topic was modified 5 years, 7 months ago by Twansparant.
Viewing 1 replies (of 1 total)
  • Thread Starter Twansparant

    (@twansparant)

    Ah I discovered what the problem is…
    When you click the Add MailPlus form button in TinyMCE, it takes ajax a few seconds to fill the dropdown with the forms, if you click the dropdown in the meantime, it stays empty even after closing and re-opening it again.
    However, if you wait a few seconds after clicking the Add MailPlus form button, it does load the forms correctly in the dropdown?

    So when trying to debug this, I bumped into this topic and I can confirm by adding listbox.menu = null; in the ajax callback, the dropdown gets updated correctly with the form options:

    var listbox = win.find('#mpforms_select')[0];
    jQuery.getJSON(ajaxurl + '?action=mpforms_get_forms', function(data) {
        listbox.menu = null;
        jQuery.each(data, function(index, item){
            listbox.settings.values.push({text:  item.name, value: item.id});
        });
    
    });

    Could you apply this bug fix soon?

    Thanks, Toine

    • This reply was modified 5 years, 7 months ago by Twansparant.
Viewing 1 replies (of 1 total)
  • The topic ‘No forms available in dropdown’ is closed to new replies.