头图

This article will help you use Tencent Cloud to build a low-code platform and quickly create a questionnaire mini-program as shown in the figure below based on an existing template.

Overview

It takes several steps to develop a questionnaire applet from 0 to 1, copy the application from the template center to your own application management, and then define the data source according to the requirements. After the data source is defined, the page needs to be designed according to the requirements, mainly to complete the addition of the layout and the definition of the components. After everything is done, you can preview and preview the effect in real time, and you can independently develop an application of your own in just a few simple steps.

Step 1: Create the app

  1. In the Tencent Cloud Micro-build low-code console , click Template Center , and click the template you want to use.
  2. Enter the application name and application ID, fill in the survey, and click New .

Step 2: Edit the data source

After using the template successfully, enter the data source management page, and you can see that a new data source named Low-code Sharing Activity Registration Form has been added.

  1. Click the name to browse details such as field name, field ID, and data type in the table.
  2. At the same time, it supports customizing the fields required for adding services on the data source management page, you need to click Edit in the upper right corner first.

    Enter edit mode and click Add Field .
  3. You can add a field of occupation, the field ID is job, the field type is string, if it is required, select Yes , if it is unique, select No , and if it is enumerated, select No.
  4. After setting, click OK to complete the addition of a field.
  5. Unneeded fields can be deleted. You can click Delete on the operation column to delete them. This article takes the deletion of interesting topic fields as an example.
  6. Add the industry of the second field, the field ID is industry, the field type is string, whether it is required, select Yes , whether it is unique, select No , whether it is enumerated, select No. After setting, click OK to complete the addition of a field.
  7. Since the users who participated in the questionnaire only need to submit, only the new method is selected for the action , and the others are kept by default. After setting, click OK at the bottom of the page, otherwise the newly added fields will not take effect.

Step 3: Modify the page

After the data source is set, you need to create a page, enter the application management page, find the application you just created, and click Edit Application to enter the application editor to make custom modifications.

An overview of the application editor action bar is shown below:

Step 4: Code Build and Release

After the form is generated, click Publish in the upper right corner to start publishing the application.

data management

After the user fills in the questionnaire, the administrator can click the data source management to view the questionnaire information data submitted by the user, click the data management background , and the content management (CMS) background of the Tencent Cloud Micro low-code platform can view and manage the data .

After entering the page, you can see the historical projects that have been created, click the new project just created.

Select the form to view the data.

You can also directly find the previous application in the application management of the console, click the application card, and find the data corresponding to the previewed/published application in the data management background . The official data corresponds to the application data generated by using the release, and the test data is the application data generated by using the preview.


CloudBase云开发
425 声望438 粉丝

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构建中繁琐的服务器搭建和运维。同时云开发提供的静态托管、命令行工具(CLI)、Flutter SDK 等能力极大的降...