var now = new Date();
function myForm() {
var form = FormApp.create('Today '+now);
var item = form.addCheckboxItem();
item.setTitle('How to maintaining your health today?');
item.setChoices([
item.createChoice('Diet'),
item.createChoice('Exercise'),
item.createChoice('Sleep'),
item.createChoice('Relish'),
]);
form.addMultipleChoiceItem()
.setTitle('Do you run outdor or indor exercise?')
.setChoiceValues(['Outdor','Indor'])
.showOtherOption(true);
form.addPageBreakItem()
.setTitle('Getting to know you');
form.addDateItem()
.setTitle('When were you born?');
form.addGridItem()
.setTitle('Rate your interests from 1 to 5:')
.setRows(['Sport', 'Computers', 'Celebrities', 'Cars', 'Arts'])
.setColumns(['1', '2', '3', '4', '5']);
Logger.log('Published URL: ' + form.getPublishedUrl());
Logger.log('Editor URL: ' + form.getEditUrl());
}