I have create simple gmail addon using google script,in that i have struggle here,
how to update textinput value on setOnChangeAction Method ,i have checked the document, i couldn't find any methods
The below code i have tried,
var client_action = CardService.newAction().setFunctionName('clientId_callBack');
CardService.newTextInput()
.setFieldName("clientId")
.setTitle("Please enter clinet id")
.setOnChangeAction(client_action)
function clientId_callBack(e){
Logger.log("%s",JSON.stringify(e))
e.formInput.clientId = "updatedValue";
}
Thanks in advance
How about this work around? I think that there may be other ways. So please think of this as one of several answers. In this sample script, when the value of
foo
is inputted, the text input is reconstructed using CardBuilder. When you use this script, as a test, please inputfoo
. This is a very simple snippet, so please modify this for your environment.Sample script :
If I misunderstand your question, I'm sorry.