Skip to main content

Randomly extract questions from forms

1. Usage scenarios

This example describes how to use simple configuration to randomly extract topics on the YIDA form page.

2. Implement functions

2.1 create a question bank form page

2.2 create exam paper form page

2.3 copy the following code to page didMount

Note that the following unique identifier is modified.

const num = Math.floor(Math.random() * 5 + 1);
this.$("textField_ksh2keha").setValue(num);

2.4 configure data linkage

The first question-the fifth question is configured in sequence.

3. Achieve results

4. Try it online

This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
Copyright © 2024钉钉(中国)信息技术有限公司和/或其关联公司浙ICP备18037475号-4