|Project:||Content Construction Kit (CCK)|
I'm currently in the process of trying to create a content type in Drupal 6.26 and CCK 6.x-3.0-alpha3 which uses the CCK Multigroup type to allow a user to enter player information (Name, Handicap, Shirt Size, Shoe Size) for a golf tournament. The multigroup works perfect for this type of data collection. Depending on the type of registration purchased, I want to display a certain number of these multigroups for the user to fill in. These registrations can be for a single individual or for 4, 8 or 16 players.
I am wondering if there is any way to programmatically change the number of instances of a multigroup on the node creation form? Right now, you can only specify a number between 1 and 10 or unlimited in the UI configuration screen for multigroup but can you use code in a custom module to alter this? I know the number of players I want to allow to register at the time the form loads so I'm hoping I can use this data to modify the number of multigroups displayed on the screen and filled in by the user. I would be using this along with the Node Checkout module to attach a list of player registrations with a golf registration product.
I have tried to look at this information but have not come across any concrete answers. I have seen some answers for changing the number of values on individual fields selectable in the UI but this doesn't help me as it needs to be dynamic.
Does anyone know a solution or perhaps another method that I can use to create this type of feature?
Thanks in advance!