x

主要章節

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

QS

QS:Em validation sq

From LimeSurvey Manual


子問題驗證方程式 (em_validation_sq)

說明

這是用於individually驗證每個子問題(文字欄位)的方程式。任何未通過這些驗證條件的文字欄位,其背景顏色將變為粉紅色(使用 .em_sq_fn_validation CSS 樣式)以突顯錯誤。請注意,除了以正規表示式為基礎的驗證選項之外,您也可以使用此功能。

有效值

任何使用 ExpressionScript 語法的方程式,不含外圍的大括號。

範例

例如,如果您只想允許 3 的倍數作為答案,方程式如下:

(this / 3) == floor(this/3)

保留變數 this 會自動被取代為對目前啟用的文字輸入儲存格的參照。

本頁面可能為機器翻譯,可能包含錯誤。 檢視英文原文 · 改善此翻譯