Gmail插件自动完成功能不允许列表中的项目超过30个

时间:2018-12-19 10:34:44

标签: google-apps-script gmail-addons

var autoComplete = CardService.newTextInput()
    .setFieldName('autoComplete')
    .setTitle('Auto Complete')
    .setSuggestions(CardService.newSuggestions()
        .addSuggestions([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]);

此小部件限制编号。 30的下拉菜单中有很多选项,我在文档中找不到对该限制的任何引用。

Gmail Addon Autocomplete

我正在尝试为Currency添加一个正在使用的附件的字段。

有人知道该怎么做吗?

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

我添加30多个项目没有问题:

var zSuggestions = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34'];
    var widget = CardService.newTextInput()
    .setTitle('some title')
    .setFieldName('some_name')
    .setValue('3')
    .setSuggestions(CardService.newSuggestions()
    .addSuggestions(zSuggestions));

实际上已经做了200多次。想知道最近是否有变化?