Skip to content
Snippets Groups Projects
Closed Afform: 'required' fields not handled correctly
  • View options
  • Afform: 'required' fields not handled correctly

  • View options
  • Closed Issue created by ayduns

    Overview

    When configuring an Afform submission form, required fields are shown with an asterisk, but when the form is displayed there is no indication of fields being required.

    Submitting the form with a missing required field fails without error.

    Configuration page - required fields are indicated: Screenshot-34

    Display page - required fields are not indicated: Screenshot-37

    Reproduction steps

    1. Install https://lab.civicrm.org/extensions/certifications on master
    2. Go to Certifications > New Certification Type, create a type as eg name: First Aid, validity: 3 years
    3. Go to Certifications > New Certification, select the type & a contact but leave the date empty
    4. Hit submit - goes to listing of all Certifications & is still empty

    Current behaviour

    Currently, the 'submit' button appears to work normally but no Certification is created.

    Expected behaviour

    The form contents should be preserved and the missing required field highlighted somehow.
    The user should be able to fill in the missing field and hit 'submit' to process.

    Comments

    See extensions/certifications#14

    Edited by ayduns

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading