Hello, I need to limit the number of posible values in an input field. I think that you have to use something like taxonomy and use it with a select1 input, this is correct?Can you explain me more about taxonomies?

Thanks

Comments

helsinki’s picture

It's always good to give a concrete example of what you want to do. Until you get used to Drupalspeak, newbies tend to use all sorts of ways of talking about taxonomy and content, and that makes it very difficult to know how to help. If you say, tell me more about taxonomies...well, how long is a piece of string? In other words, there is so much to be said about taxonomies, and I have no idea what is actually relevant to your question.

From what you wrote, I think you may need something like flexinode.module to create your own custom content input forms. To be honest, I'm guessing as to what you mean though.

________________________________
WILBA ¦ what's it like to...?

cesartovic’s picture

Well I have a module that is a form and the authenticated user has to complete it.I (in the role of administrator)want to change the possible choices of the select element without making changes in the module. For example if the select element is an array of citys ("London","Chicago",New York") I want to have the posibility to add a new city to the select element, for example "Madrid" and now the user have a select element in wich appears London,Chicago,New York and Madrid. Do you understand me now??

Thanks a lot

helsinki’s picture

Yes, I do understand. You don't need a custom module, you do need flexinode.module. It allows you to create a form with any elements you want (drop down select, tick boxes, radio buttons, text areas, text fields, urls, images etc,.).

In this module, you can always go back in and add extra elements to the drop down boxes. The taxonomy module adds a select menu to add the content to a selection of terms. You can assign vocabularies to your flexinode content-type to restrict the number of options to those that you think are relevant. If you use this, then you don't need to have a custom module, as all page, story, article, etc., modules will call up the taxonomy select form for adding your story to the taxonomy.

Hope this helps. Post back if you need more info.

Mark


_____________________________________________________________________
WILBA ¦ what's it like to...?
Drupal Forum: It's impossible to give a clear answer to an unclear question!

cesartovic’s picture

I have my "own" module created by me.The functionality of this module is a menu to the authenticated user,When you enter the menu the first page is a form that has two select elements and a submit element I want to limit the number of choices that the user could choose in both cases. You choose some of the choices and then you click the submit element and I make a lookup to a table thatI have created and I make some calculations and I present the solutions to the user.For this reason I need my "own" module and I think that taxonomy and flexinode is nos a good solution(I don't know how I can use them with my own module). Whta do you think??

Thanks