Skip to main content

How to fill a checked value into a subtable

1. Business Background

When designing a form using YIDA, you sometimes need to write the data in the check box or the drop-down check box directly to the subform, at the same time, you need to automatically increase the number of rows in the subform based on the number of data selected.

2. Design ideas

The check box of the main table selects a variety of items, and you want to automatically convert them to the subform. How to set them?

Use js to loop the value of the check component to obtain each option in the array, then process it into the format of the subform component, and assign it to the subform.

3. Form design

When you select a check option, the selected check options are inserted into the subform and the serial number is entered.

4. Procedure

4.1 Add onChange action events to the check component

4.2 process data and assign values to Subforms

Write js code, process data into subform format, and assign value to subform

5. Effect demonstration

6. Video demonstration

此处为语雀视频卡片,点击链接查看:复选组件选项赋值子表单.mov

YIDA in order to better optimize the content and quality of YIDA user manual, it takes you 3-5 minutes to fill in the document feedback questionnaire. The document feedback questionnaire is submitted anonymously, and the questionnaire information is only used for YIDA document experience feedback collection. Thank you for your support for YIDA!

Click here to fill in the questionnaire


-------------------- Get the latest information YIDA, welcome to follow US--------------------

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