I've prepared my CardService Card:
return CardService
.newCardBuilder()
.setHeader(
CardService.newCardHeader()
.setTitle('Elenco operazioni rapide')
.setSubtitle('Inserisci rapidamente gli eventi con questi tasti'))
.addSection(
CardService.newCardSection()
.addWidget(widget)
.addWidget(datatimepickerstart)
.addWidget(datatimepickerend)
.addWidget(button))
.build();
When I press button:
var action = CardService.newAction()
.setFunctionName('function1')
var button = CardService.newTextButton()
.setText('Calendario')
.setOnClickAction(action)
.setTextButtonStyle(CardService.TextButtonStyle.FILLED);
I would like to pass all parameters from the builder (checkbox choice, datatimepickerstart, datatimepickerend, etc...) to function1. How can I do it?
Here's an example of something I did several years ago:
The following function is getting parameters from cardservice via the field object