formio.js
formio.js copied to clipboard
If logic is applied to any control then default value becomes mandatory in builder even if the control is non mandatory [BUG]
Environment
Please provide as many details as you can:
- Hosting type
- [ ] Local deployment
- Version: 4.2.6
- [ ] Local deployment
- Formio.js version: 4.2.6
- Frontend framework: Angular-formio
- Browser: Google Chrome
- Browser version: 77.0.3865.90 (Official Build) (64-bit)
Steps to Reproduce
- Take a select component on form as "Country" and bind some values hardcoded from data tab.
- Take another Text Field component on form. Add logic to make mandatory to this field on the basis of Country. Add the logic name.
- In trigger section select type as "Simple".
- Select "Country" option from "When the form component:".
- In Action section provide "Action Name".
- Select option as "Property" from Type options.
- Select "Required" from Component Property options.
- Set State true.
- Save action and save logic.
- Click on save button.
Expected behavior: Component setting should be saved successfully. Observed behavior: On clicking on save button on popup window of component (Text Field) setting, an error message "Default Value is required" is coming.
Example: NA
Closing as this is stale. Please feel free to reopen as needed.