The main difference between single and multiple widgets is if the node i'm adding is going to be inline or I can add it with an 'add node' button.

Once I'd like to add a node also with a button (not inline) 'multiple' widget seems to be a good solution for me. Also in my scenarion it's obvious that only one node can be added.

A flag (with 'Hide 'You have added 0 out of x allowed nodes.' text') can solve this issue.

I'm thinking if there's any other module that would do this for me. Also i'm trying to use as less modules as possible and I want consistent, simple UI. Maybe some form alter hook would do it also for me?

Comments

bojanz’s picture

Category: feature » support
Status: Active » Fixed

Yes, you can do a from alter, and just set the #description of the widget blank.
(So something like $form['yourfield'][LANGUAGE_NONE]['#description'] = '';)

bsandor’s picture

Wow. Great. Thanks.

Status: Fixed » Closed (fixed)

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