formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

[BUG] Enable Strict Date Validation is visible on textbox, textarea alse & creating problem while redering

Open imshivamchauhan opened this issue 7 years ago • 2 comments

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)

  1. Open any TextArea or TextField Component setting, Go to validation Tab, Strict Date Validation checkbox is visible on it.
  2. Try to open textarea setting (placed inside datagrid), it will not open setting dialog.
  3. Preview of textbox(placed in plain form NOT in datagrid), is not rendering inside setting dialog.
  4. In renderer, some error is showing may be due to strict date validation malfunctioning, see attached image. image

Expected behavior

  1. Strict Date Validation should only be on calender Date/Time only.
  2. Setting dialog should open.
  3. preview should be visible.
  4. 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 avatar Sep 26 '19 14:09 imshivamchauhan

@imshivamchauhan Thank you for the report. We have assigned this to our dev team to fix.

jeriah-formio avatar Sep 27 '19 15:09 jeriah-formio

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

imshivamchauhan avatar Sep 30 '19 09:09 imshivamchauhan