This page demonstrates how to use a custom configuration with the dynamicField plugin. In all honesty, since the plugin is written to build based upon the form field that it is attached to, there are really only three configuration options that are of any real importance:

  1. maxFields (maximum number of fields permitted; defaults to 5)
  2. removeImgSrc (path to the image used for removing a field "row")
  3. spacerImgSrc (path to the spacer image)

Instead of the default of five (5) maximun fields, we're going to allow eight (8). Additionally, for the sake of demonstration, we're going to use a calendar image as our remove trigger.

View the code used to generate the form.

Add Row