By iantresman on
I'm after a CCK module, that would provide the addition of a Form (with Input fields) and Submit button to a page. For example, add a Paypal PayNow (or Google Checkout) button. Or any kind of submission form. The completed module would the donated to the Drupal project.
Background
- I've already used CCK to create a "Book" page which includes fields for its Title, description, cover image and price. From which, I want to create a Paypal "pay now" form button.
- The Book title and price are already avaialble, but a Paypal PayNow button requires some additional hidden form field data, and a Submit button. So I need to be able to copy the book title and price, aad some hidden fields and a Paypal PayNow Submit button.
Details...
- I need to create a Form on a page that supports at least:
<form> <input>, with the option to customize each, eg. Form Action, and different types of Input fields (eg. Hidden, Submit, Password, etc, and also field Title and Name tags. I think a single customize field would solved this; I specifyaction="url" post="get" name="formname", and then thiis would be used to create<form action="url" post="get" name="formname"> - Since a page may already hold relevant information in its own fields, some of the new form fields need to be created from existing data. For example, on my book page, I need to copy the Book title to a hidden input field, the price to a hidden cost field, etc.
- It should also be possible for my book item to have multiple forms (Submit buttons) on a single page, for example, I might also want to create a Google Checkout form button too.
- And since I can also display several nodes on one page (ie. multiple books on a single page), I would also need to show multiple sets of form buttons. Does this mean a requirement that each form has its own unique name?
Future enhancements (not required for my project)
- A more sophisticated way of modifying data copied from one field to another would be potentially very useful. eg, Copying a price, and generating a calculated tax field at 5%, or modifying text strings.
- Form field validation would be useful, eg. a required field
- Although I don't need it, it should be easy to also create
<select> <textarea>fields.
Comments
CCK Forms with User Inputs
Can we create forms using CCK that accepts user inputs, validates the data and then submit the data for database processing.