Add another (experimental) example

Start empty

By default no form fields are displayed when the component loads if no content is specified

How it looks (preview)

Employee 1

How to call this example

<%= render "govuk_publishing_components/components/add_another", {
  fieldset_legend: "Employee",
  add_button_text: "Add an employee",
  empty_fields: true,
  items: null,
  empty: sanitize("<div class=\"govuk-form-group\"> <label for=\"employee_1_name\" class=\"gem-c-label govuk-label\">Full name</label> <input class=\"gem-c-input govuk-input\" id=\"employee_1_name\" name=\"employee[1]name\"> </div>")
} %>