Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-2.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Jan 2008 at 08:41 UTC
Updated:
16 Mar 2008 at 17:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersAre you using the $worked array for the #options property? Please post a more complete code sample.
Comment #2
mouse77e commentedI'll post a fuller code sample later when i get back to my machine.
many thanks for the reply but out of interest how do you do it?
Comment #3
wim leersSee API.txt, the "Form API usage" section.
Comment #4
wim leersComment #5
mouse77e commentedSo... if my category is called "WORKED" i would copy this amended code into my page template?
Then Echo it out?
Sorry Wim, i suffer from Dyslexia and whilst this module is a god send, this is not 100% clear for me...
Comment #6
wim leersIt seems to me you don't know how to use the Forms API yet? If I'm right, please read the Quickstart Guide.
As an example (extracted from the code used here):
Comment #7
mouse77e commentedWim, many thanks.
i fear that we are at misunderstanding each other. getting the form to display has been, thanks to your wonderful module, been very easy. my issue is how to get the Results from the form onto the finished users page.
as you can see from the screenshot the form works very well indeed! but as you correctly worked out i am a n00bie with Drupal.
any help is VERY greatfully received.
Comment #8
wim leersYou will want to write a FAPI submit handler to save the options the user selected. See http://api.drupal.org/?q=api/file/developer/topics/forms_api.html/5 and scroll down to "Submitting Forms".
Comment #9
mouse77e commentedI think i mentioned in another post i am dyslexic... having asked Wim my question on displaying the selected multiple choices from the category i realized i had boobed.
i had ommited to add the line $location = array();
Wim, my apologies!
Comment #10
wim leersNo worries :)
Also: a shorter equivalent of
array_push($video, $item)is:$video[] = $item.Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
afagioliHi
The #6 example was very helpful to me.
It may be a good idea to add the vocabulary_to_options() in the API.txt?
thanks a lot!
Comment #13
wim leersI'll probably start working on the next major version of HS in about a week. That version won't degrade to a normal JS (which means that the HS widget will look virtually identical when JS is disabled), and thus #options will become completely obsolete. So for now, I'll refer people to this issue.
Glad it helped you :)