Skip to main content

How to assign values to hidden fields

1. Description of invisible field assignment function

When the form is submitted, you can set some components to the hidden state. The values of hidden components are assigned by formulas. When the page is submitted, hidden fields are automatically obtained by setting formulas, automatically obtained values are also saved. Applicable scenarios: financial reimbursement, information collection, etc.

2. Case description and procedure

2.1 case scenario

The department should collect the sizes of the cultural shirts of all students. The collection form mainly contains two fields: name and size.

However, to facilitate later statistics, we added a hidden field on the page to record students' Department information.

2.2 Procedure

(1) select a single line of text and set the field to hidden.

Set component status

(2) use formulas to assign values to hidden fields

Path:Properties> default> Formula editing

Function to obtain Department information: DEPTNAME(LOGINUSERWORKNO()

Set formula

(3) set the data submission in the component advanced settings to always submit

Set always commit

Note: After editing the formula, don't forget to save the form settings.

Effect display:

此处为语雀视频卡片,点击链接查看:新-隐藏字段赋值.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