Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the Question tag

Shulou Source: shulou.com Published: 2022-06-02 01:28:07 11月05日 Update

This article mainly explains "how to use the Question tag", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use the Question tag" bar!

Function: get the subjects of the questionnaire.

Implementation class

Com.jspxcms.ext.web.directive.QuestionDirective

Parameters.

SiteId: site ID. The default is the current site.

Id: questionnaire ID. If this parameter does not exist, get the latest questionnaire data from the corresponding site.

Example

Get the latest questionnaire object on the current site:

[@ Question;question] [# if question??] ${question.title} [# list question.items as item]

${item_index+1}, ${item.title}

[# if! item.essay] [# list item.options as option] ${option.title} [/ # list] [# else] [/ # if] [/ # list] View the result $(function () {$("# questionForm") .validate ();}) [# else] did not vote [/ # if] [/ @ Question] Thank you for reading, this is the content of "how to use Question tags". After the study of this article, I believe you have a deeper understanding of how to use Question tags, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Tags sites questionnaires surveys learning content parameters objects functions that is ideas situations data articles more knowledge knowledge points articles results examples Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MariaDB Linux Microsoft MySQL