• Resolved Christopher

    (@c_turnbull)


    My iContact account has a lot of lists — more than 20. Unfortunately it seems that the plugin can only display the first 20 when creating a feed, and there doesn’t appear to be any kind of paging functionality to allow me to see more than that.

    I suspect this is something to do with an API limit on the number of returned items, is there a quick fix just to make all the lists appear on the same page? Thanks!

    https://www.ads-software.com/extend/plugins/gravity-forms-icontact/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Christopher

    (@c_turnbull)

    As suspected there are limit and offset parameters in the icontact api class (gravity-forms-icontact/api/iContact.class.php) which haven’t been specified in the API call, so it appears to default to 20 items. I changed this line in the getLists() method:

    $response = $this->callResource("/a/{$this->accountId}/c/{$this->clientFolderId}/lists",'GET');

    to this:

    $response = $this->callResource("/a/{$this->accountId}/c/{$this->clientFolderId}/lists?limit=50",'GET');

    It’s only a quick hack and hardcoding a limit isn’t recommended, but at least now I can select from any of my lists. Hopefully helps out anyone else with the same problem.

    Plugin Author Zack Katz

    (@katzwebdesign)

    I added this to the plugin; thanks for providing the fix! I did, however, make the limit 999, just in case ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot view more than 20 lists’ is closed to new replies.