Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11431

Enforce required attribute as html required

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Optional Optional
    • None
    • None
    • System
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      Formastic is able to identify required attributes and they are marked with the red asterisk. However, this means nothing html-wise and it's still necessary to pass 
      {{input_html: { required: true }}} to the field.
       
      PatternflyInputInput so that it automatically includes required="required".
       
      HEADS UP: currently forms with required fields can be submitted empty and the server then returns inline errors for them. By adding HTML attribute required="required", many tests will fail. Forms with unfilled required fields should have their submit button disabled... but this is not supported natively and it would require JS, which is bad. When cucumber try to submit an incomplete form, it will just do nothing and no error will pop up from cucumber's perspective.

              Unassigned Unassigned
              jgallaso Jose Miguel Gallas Olmedo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: