Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-575

Failed to submit form with a textarea field depending on the value of a boolean field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.15.0
    • None
    • None
    • None
    • 4.6 RC4, 4.6 RC5

      https://demo.ametys.org/nightly-intranet-cms/preview/intranet/fr/ressources/formulaires-et-modeles/demande-travaux-reprographie.html

      The form contains the boolean field with a rule.
      A textarea field apperas only if the boolen field is true

      When checking boolean field, the textarea appears but wther is a erreor on submission

      java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
      at org.ametys.plugins.forms.actions.ProcessFormAction#_getRuleValues:478
      at org.ametys.plugins.forms.actions.ProcessFormAction#_getRuleFilteredEntryView:401
      at org.ametys.plugins.forms.actions.ProcessFormAction#_processForm:193
      at org.ametys.plugins.forms.actions.ProcessFormAction#act:135
      

            lbouchet Loïc Bouchet
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: