I'm creating a summary view of products and prices, along with the ability to update the prices for each product (each product has 5 prices for various user roles).
I'm using AHAH to submit the specific product form, and have the form working great,…
I have a template file that I want to print a the cck user reference form field on.
Is this possible? Note, this is not the field value, but the field form. Also asking for just the field, not creating a form first and then using…
am using drupal, I made a form wiht drupal fapi
moduele_menu()
module_myform()
module_myform_submit
..
I get in my page the form elements ( inputs...) but i did not get the wrapper (
I have written a module that uses hook_form_alter to add a custom submit function to the node form. This function is not intended to remove the original node submit function, it is there simply to alter node data before it is inserted into the…
Using Drupal 6.20.
We can setup some form elements like this:-
and then cycle through them in PHP with
foreach ($somename as $name) { ... }
I am trying to do the same in Drupal.…
I am creating a wizard form to order items, I have 4 content types, project | door | dooroptions | projectoptions.
This is done in 4 steps: You give tour measurements, the doors that fit are show, you pick a door, you pick the options for the door.…
Aim is to display a form, with a default resultset on the page, and allow the viewer to filter the results on the page by form submission. This part works.
However: If a default set of results is included, then the initial submission builds two…
I am currently using the Drupal function drupal_execute to register users, however the password value seems to only record the first chracter when it saves in the DB.
$form_state = array();
$form_state['values'] = array(
'name' =>…
I have successfully created a page in drupal that displays a form and results on the same page. The form acts like a filter of the results. The results include a bunch of html that includes google charts via the Chart API module…
I am creating a custom form in Drupal. In this form I wish to create a select box. In this box I wish to list all users on the site. When saving my form this will populate a CCK field which references users.
I know to create the select list I use…
I am trying to render a tabular layout (html table) for a form such that first cell contains a checkbox.
$form = array();
$res = query('SELECT * FROM {mytable}');
$rows = array();
while($row = db_fetch_array($res)){
$record = array();
…
I have a form like poll form.When there is no data in db I want to show only add button and when user clicks "more" I want to show him/her a submit button.
I used the following code but it seems doesn't works.
if ($form['count']['#value'] > 0) {
…
It seems to be difficult to ajaxify a drupal multistep form(loading next step without page refresh).I googled it but I didn't find any solution.
Does anybody know how to do it?