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
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!
-------------------- Get the latest information YIDA, welcome to follow US--------------------