formio.js
formio.js copied to clipboard
[BUG] Enable Strict Date Validation is visible on textbox, textarea alse & creating problem while redering
Environment
Please provide as many details as you can:
- Hosting type
- [x] Form.io
- Formio.js version: 4.2.1
- Frontend framework: Mean, angular-formio-4.2.0
- Browser: chrome
- Browser version: latest
Steps to Reproduce (These are 3 interlinked issues)
- Open any TextArea or TextField Component setting, Go to validation Tab, Strict Date Validation checkbox is visible on it.
- Try to open textarea setting (placed inside datagrid), it will not open setting dialog.
- Preview of textbox(placed in plain form NOT in datagrid), is not rendering inside setting dialog.
- In renderer, some error is showing may be due to strict date validation malfunctioning, see attached image.

Expected behavior
- Strict Date Validation should only be on calender Date/Time only.
- Setting dialog should open.
- preview should be visible.
- It should not display errors like this, (a help for you, In WidgetComponent.edit.validation.js, there may be a spelling mistake "customCoditional", it should be "customConditional") customCoditional: function customCoditional(context) { // at line no 14 return context.data.type === 'calendar'; } @travist @randallknutson See above attached image, these errors are coming on renderer.
@imshivamchauhan Thank you for the report. We have assigned this to our dev team to fix.
also, In Wizard, if we select date in date/time component suppose, 30 Sept,2019 (30-09-2019) via calender, and Click Next Then back to Previous, the Date becomes, 20-Sept,2030, that means the 'DD' Date becomes the 'YY' year of the date, 24 Sept,2019 will become 20 Sept,2024. @jhen1422