May 23rd, 2009, 9:55 AM
Hi Code,
Thanks for the post!
1. It may be possible, but it rather depends on your data set (and if I understand it properly!). Just to recap the scenario, to make sure we're on the same page: imagine your form contained 10 fields, then the user clicked "Add User" and another 10 fields appeared. These new 10 fields would be the same as the original 10.
In order for all this information to appear with a single ID, the form would need to have all 20 fields set up.
But, would you maybe want ANOTHER "Add User" button to appear at the end of the 20th field? If so, you really need to store the groups of 10 submissions separately with different IDs and then think about grouping them somehow. Off the top of my head, this is certainly possible with the existing code, but you'll need to use the Submission Pre-Parser module.
What you could do is this: in Form Tools add the 10 fields for a single person. Then add a new one called "User Group ID" or something. Next, in your form, keep track of the number of users being added (either via JS or PHP). Finally, when the user submits the content, you'll need to loop through the results and submit each one, one-by-one. In each submission being added, pass the same User Group ID, e.g. a unix date time. That information can then be used in Form Tools for searches to retrieve all submissions added at that one time.
Anyway, probably too much info! Just wanted to let you know that it's probably possible if you're willing to put in a little legwork.
Could this be done by creating Views for Pending, Complete etc.? That would be the simplest route. Otherwise, you'll need to look into developing a separate module, I'm afraid.
Hope the above helps a little.
- Ben
Thanks for the post!
1. It may be possible, but it rather depends on your data set (and if I understand it properly!). Just to recap the scenario, to make sure we're on the same page: imagine your form contained 10 fields, then the user clicked "Add User" and another 10 fields appeared. These new 10 fields would be the same as the original 10.
In order for all this information to appear with a single ID, the form would need to have all 20 fields set up.
But, would you maybe want ANOTHER "Add User" button to appear at the end of the 20th field? If so, you really need to store the groups of 10 submissions separately with different IDs and then think about grouping them somehow. Off the top of my head, this is certainly possible with the existing code, but you'll need to use the Submission Pre-Parser module.
What you could do is this: in Form Tools add the 10 fields for a single person. Then add a new one called "User Group ID" or something. Next, in your form, keep track of the number of users being added (either via JS or PHP). Finally, when the user submits the content, you'll need to loop through the results and submit each one, one-by-one. In each submission being added, pass the same User Group ID, e.g. a unix date time. That information can then be used in Form Tools for searches to retrieve all submissions added at that one time.
Anyway, probably too much info! Just wanted to let you know that it's probably possible if you're willing to put in a little legwork.
Quote:2. Is it possible to add in USER MENU links to specific views? For example when client logs in right side menu under Forms you would have submenus like Pending - Status and so on
Could this be done by creating Views for Pending, Complete etc.? That would be the simplest route. Otherwise, you'll need to look into developing a separate module, I'm afraid.
Hope the above helps a little.
- Ben