The purpose is to create an inspection form (like for food or fire inspectors). The user checks off the deficencies which populates the textarea with the templated text (referenced nodes title and body) and the user fills in the rest of the details.
One idea: I need a widget that enables the user to select a node (checkbox) and have it populate a text area(body for example) with the node data within the node form. Kinda like the ui for contemplate does but when the checkbox is uncheck the text is removed. This would need to be something like nodereference for viewing the node titles but it would also pull off this fancy footwork.
If you have a nice way doing this or another idea for accomplishing the same thing let me know your ideas and if they are good and you have the knowhow we can discuss price.
*This does not need to use cck but that would make it easier to customize the forms. Thus, other options such as a full module for managing inspection types, deficency types, handling the noad_load dynamically, jquery, etc is worth consideration too.
[Edit:Moved to the Paid Services Forum. AjK]
Comments
hi
Hi Nathan,
So if I understand correctly you want the AJAX from nodereference to select the node to autopopulate your node, right? You want the autopopulation to happen hidden, after submission? In that case you probably also want the title and body fields to be hidden, to avoid confusion.
I would be up for the task, I did some work on autopopulation for my autonode module.
I want the autopopulation to
I want the autopopulation to happen in real-time (before submission). That is, the inspector chooses from a list of nodes (the violation type) using a checkbox, or some other widget like multiselect, this grabs the node content and places it in the above textarea in real-time. The inspector can then edit/add the inserted text as necessary. Next the inspector can choose another and repeat this process until done and saves the node. The main purpose of the node reference is to provide the templated text for the inspector to use.
Another solution (although ineffecient and lame and exactly what we are trying to get away from) would be to load a node with all the possible templated text hidden and on check of the checkbox populate the text area with the content using js and on uncheck remove the text. The main issue with this approach is that there are potentially hundreds of choices that would need to be loaded. I have some html/js from a previous solution that did exactly this if you want to take a look at it.
Here is a scenerio;
Food Inspector...
1. creates content Inspection
2. chooses a violation type by checking the check box for "Expired Food" amongst 50 choices.
3. On check the the text from the "Expired Food" node appears in the "Violations textarea"
-" Expired Food
Food that has passed its expiration date violates state law #fw00343.
The following foods were found past their expiration date:"
4. adds text
-" Expired Food
Food that has passed its expiration date violates state law #fw00343.
The following food was found past its expiration date:
- 12 Cans of pork (expired 1/22/77)
- 5 Bags of raw squid (Expired 5/25/2007)
- Note: also evidence of recent usage of expired foods was found. "
5. fills out the rest of the form and submits it.
Drop me an email and maybe we can talk to clarify.
Have you found a solution?
I am in the midst of building a similar system but for newsletters. I want to have the user being able to select a newsletter template which automatically fills the node body of the newsletter. This allows the user to edit the newsletter and seeing roughly how it looks.
If you have a solution I would love to hear about it. In the meantime after much searching I think I need to develop it into my own module - I just don't know how to use ajax inside Drupal.
yepp its at
yepp its at http://drupal.org/project/jsnodeload