PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Please add html5 input "required" attribute to form elements

  1. The 'required' attribute works in most browsers but isn't being used in GF for some reason.

    Specifically, in GF Settings I have the Output HTML5 checkbox checked, and the checkbox for my individual fields are checked as being required in my form. But the word 'required' is not be added to input elements as I would expect.

    It would remove a couple issues I'm having with GF validation using both AJAX and page refreshes.

    Posted 10 years ago on Friday May 17, 2013 | Permalink
  2. A hack that seems to work I can use for now I think:

    jQuery(document).ready(function() {
    jQuery('#input_1_1').attr("required", "required");
    jQuery('#input_1_2').attr("required", "required");
    jQuery('#input_1_3').attr("required", "required");

    Posted 10 years ago on Friday May 17, 2013 | Permalink