Hi, I'm trying out this module on a local installation and I'm liking it quite a lot. However, I can't put it to use on a production website yet because of the following problem:

I have a form with fields that need to be filled in by a human editor on the backend, so the information can be displayed on the front. Some of those fields require entering names, and Name Field handles this.

One particular field on this form needs to allow the human editor to enter an "unlimited" number of names. I've set this up and the form display looks OK -- it allows me to repeat the name fields until no more names need to be filled in, and then I just save the form and all is good.

The problem comes when I need to edit the form to add some more data (within fields other than name fields). When I do, the module adds a new name field group just below the last one I had filled. And it comes with a required field. This has the effect of not letting me add or change data on the form, and saving it again, without adding one more name.

Of course I have checked the settings to see if there was a way to untick all required fields, but it seems that at least one field needs to be ticked as required (that is, at least one minimum component needs to be filled in).

Is there a way of fixing this, or at least a workaround?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SomniumLucidus created an issue. See original summary.

SomniumLucidus’s picture

Issue summary: View changes
SomniumLucidus’s picture

Issue summary: View changes
SomniumLucidus’s picture

Issue summary: View changes
SomniumLucidus’s picture

Priority: Major » Minor
SomniumLucidus’s picture

I've found a solution to this and therefore changed the priority from Major to Minor.

When editing the field settings, the option "Show component required marker" must remain unticked.
The title of this option suggests that it just adds or removes the asterisk marker, but in fact it turns on and off the required fields. The wording of its title and description is perhaps misleading for the user.

Alan D.’s picture

  • Alan D. committed 8df3923 on 8.x-1.x
    Issue #3049262 by Alan D., SomniumLucidus: Allow for no field to be...
Alan D.’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.