This function uses the Apps Script into your project to create a Form:
The user can fill this form into many ways using this as a quiz:
Let’s see the source code:
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 | 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()); } |