Determines whether the check box contains the specified option.
In the process of building YIDA applications, you may encounter the following problems.
- How to determine whether the check component contains a specified option value
Prerequisites
This tutorial uses the form formula of YIDA. You can first understand the followingForm formula.
Effect
Implementation steps
Create a common form page
Create a common form page. For more information, seeCommon form.
Drag the following components into the canvas area.
- Check: name it check
- Single choice: Named as the specified option
- Single line text: specifies whether the check box contains the specified option.
Add Form formula
Check whether the specified option field contains the default value. Select formula Edit and configure the formula shown in the following figure. You can also copy the formula source code directly. Note that you can modify the field.
{"text":"IF(ISEMPTY(复选),\"否\",IF(EQ(SEARCH(指定选项,CONCATENATE(复选)),0),\"否\",\"是\"))","marks":[{"from":{"line":0,"ch":11,"sticky":null},"to":{"line":0,"ch":15,"sticky":null},"value":"checkboxField_m33rn7nc","invalid":false},{"from":{"line":0,"ch":34,"sticky":null},"to":{"line":0,"ch":40,"sticky":null},"value":"radioField_m33rn7nj","invalid":false},{"from":{"line":0,"ch":53,"sticky":null},"to":{"line":0,"ch":57,"sticky":null},"value":"checkboxField_m33rn7nc","invalid":false}],"isCmData":true}
Save page
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.
本文档对您是否有帮助?