I'm using HS in a node form inside a field group (horizontal tab item) and also using node form columns but even after disabling both modules the add button won't show. Disabling javascript didn't help either, the update button shows up but still no add button. Though, my error log displays the following error message:

Warning: Missing argument 2 for _hs_new_setting_ajax(), called in [...]/hierarchical_select/hierarchical_select.module on line 336 and defined in _hs_new_setting_ajax() (line 433 of [...]//hierarchical_select/hierarchical_select.module).

Also, I wanted to export the HS settings but the page cannot be found:

http://example.com/admin/config/content/hierarchical_select/export/taxon...

replaced my own domain with example.com

CommentFileSizeAuthor
#9 hs_settings.txt731 bytesacbramley

Comments

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

Are you sure you're using alpha 4? The exporting functionality should definitely be working in alpha 4.

Your other problem has been fixed the other day. So please use a development snapshot until the next alpha is released.

Please completely reinstall the module (disable the modules, remove the code, re-download the code, enable the modules). I want to make sure you're using the right code and that your menu has been rebuilt.

tdimg’s picture

Title: Add button not showing » HS field is required error after selecting first hierarchy term
Version: 7.x-3.0-alpha4 » 7.x-3.x-dev
Priority: Critical » Normal

Thanks, works with the latest dev, also page missing error disappeared.

Though, I get now an error message that the field is required straight after I select the first hierarchy term - the field is set to be required but this shouldn't appear at this stage.

wim leers’s picture

That's very strange :/

I'd appreciate it if you could dive deeper into this problem (i.e. analyze where it goes wrong in the code).

wim leers’s picture

Hah, you're working for Cardiff University? Funny to see Cardiff University use two entirely separate open source projects of mine: http://driverpacks.net/well-known-users is the other :)

tdimg’s picture

I'll do my best.

[ot]Lol, the School of Engineering of all people - you should've told them to stick with you and also use Drupal for their website instead of going with Joomla. I myself am trying to make a case for using Drupal for our course database and funding opportunities - do you by any chance know of any Drupal developers close by?[/ot]

wim leers’s picture

Since I live in Belgium and have only been once to London in my life, I unfortunately do not know any Drupal developers in the U.K. — besides those that I've met at Drupalcons, of course. I know Acquia Europe has its offices in London, so maybe you can pull them in to convince management? :)

acbramley’s picture

I'm getting the same issue with a mandatory taxonomy field under a vertical tab, after selecting the first term in hierarchy I get an error message directly above the field "Category field is required." (Category is the field name).

This shouldn't be triggered until the form is submitted.

zmove’s picture

+1 for the problem.

To reproduce :

  • Create a vocabulary and associate some terms with a hierarchy
  • Make this field as required
  • Configure hierarchical select for that term. Choose "force user to choose from a deepest level"
  • Now create a new node. when you will choose the first term of your hierarchy, you will see an error message that say that the taxonomy field is required. This is really confusing for the user to see that error whereas he didn't finish to select the taxonomy

Regards,

Alex

acbramley’s picture

StatusFileSize
new731 bytes

Can confirm this happens when choosing "Allow the user to choose a term from any level" instead of "Force the user to choose a term from a deepest level".

Here's an export of my HS settings if it helps

foripepe’s picture

acbramley’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Duplicate to the above issue, RTBC patch attached there