Google Form 中英對照標題Title及Description 描述太長,如何隔行 Break the line? 可以這樣做!
Google Form 中英對照標題Title及Description 描述太長,如何隔行 Break the line? 可以這樣做!
在Google Form裡我們有時要寫很長的中文和英文的標題或描述。那麼如何可以隔行令到清晰好看一些? 可以用script editor 寫script 來解決。
如果想將標題隔行可打入:
nextLine= "第一行文字\n第二行文字"
function quickTest() {const gForm = FormApp.getActiveForm();const nextLine = "Questionnaire about increase of salary tax in 24/25 Finacial Year\n關於在24/25財政年度增加薪俸稅的問卷調查 "gForm.setTitle(nextLine)}
在指令碼編輯器貼上而後按儲存,再按三角形PLAY。可能有視窗彈出需要授權,按是就可以。function quickTest() {const gForm = FormApp.getActiveForm();const nextLine = "Questionnaire about increase of salary tax in 24/25 Finacial Year\n關於在24/25財政年度增加薪俸稅的問卷調查 "const dLine="Please fill in this questionnaire and submit online. This research is a project caried out by the Economic Department of XX University\n請於2023年11月6日(星期一)或之前填報下列Google Form 調查資料,以供XX大學經濟系稅務研究項目所用。謝謝合作!"gForm.setTitle(nextLine)gForm.setDescription(dLine);}
如果要將描述隔行,可打以上Script:
dtLine= "第一行文字\n第二行文字"
這樣就成功了。
留言
張貼留言