Google Form 中英對照標題Title及Description 描述太長,如何隔行 Break the line? 可以這樣做!

Google Form 中英對照標題Title及Description 描述太長,如何隔行 Break the line? 可以這樣做!

 


在Google Form裡我們有時要寫很長的中文和英文的標題或描述。那麼如何可以隔行令到清晰好看一些? 可以用script editor 寫script 來解決。



 在傳送右方邊有一個打直3點的按鈕,按下可看到一個指令碼編輯器。

按著便會來到可以打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第二行文字"

這樣就成功了。







留言

這個網誌中的熱門文章

如何設定Google Form顯示語言 Display language 是某一種特定語言Particular Language ?

壞機救資料神器Hiren’s BootCD PE (免費軟件) - Boot Failure ? Scan Virus 先

Adobe Ai 外框outline 是什麼?轉了外框要再更改,後悔怎麼辦?