def decidim_form_for(record, options = {}, &block)
      options[:data] ||= {}
      options[:data].update(abide: true, "live-validate" => true, "validate-on-blur" => true)

      options[:html] ||= {}
      options[:html].update(novalidate: true)

      output = ""
      output += base_error_messages(record).to_s
      output += form_for(record, options, &block).to_s

      output.html_safe
    end
def decidim_form_for(record, options = {}, &block)
      options[:data] ||= {}
      options[:data].update(abide: true, "live-validate" => true, "validate-on-blur" => true)

      options[:html] ||= {}
      options[:html].update(novalidate: true)

      output = ""
      output += base_error_messages(record).to_s
      output += form_for(record, options, &block).to_s

      output.html_safe
    end
A custom form for that injects client side validations with Abide.

 record - The object to build the form for.
 options - A Hash of options to pass to the form builder.
 &block - The block to execute as content of the form.

 Returns a String.