![](/img/trans.png)
[英]Google App Script Card Service datepicker returns strange value
[英]How to access the Card section input field value in Google App Script?
我的卡片生成器看起來像
function createSelectionCard(e) {
var builder = CardService.newCardBuilder();
builder.addSection(CardService.newCardSection()
.addWidget(CardService.newTextInput()
.setFieldName("text_input_form_input_key")
.setTitle("Enter Value")
.setValue('Test'))
....
return builder.build();
Text Input 的文檔說setFieldName
Sets the key that identifies this text input in the event object that is generated when there is a UI interaction
but using e.text_input_form_input_key
always results to a null value
function Embed(e) {
...
presentation.getSelection().getCurrentPage().insertImage(dataBlob)
.setDescription(e.text_input_form_input_key)
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.