Hi All

Can't find a proper category to post this under, but desperately need assistance so forms can be submitted for an upcoming conference. Hope someone can help... :-)

Have created a Webform using Webforms module.
Have added some jQuery to control some of the webform elements as follows:

Created webform-form-NodeID.tpl.php which calls a formatting php file
included drupal_add_js (drupal_get_path('theme', 'zeropoint') .'/sessions/sessions.js', 'theme' ); call in above tpl.php file
All works fine with jQuery actions working with no problems EXCEPT I get

,'inline' ); ?>

showing up in the top left hand corner of the form which wouldn't be a huge problem EXCEPT when the form SUBMIT button is hit I get stuck with a blank page with just the

,'inline' ); ?>

showing at the top left hand corner and it doesn't progress to the redirect URL.

Would appreciate any clues or a point to a solution node (have searched now for a few hours but not found anything)

Many thanks in anticipation...

Here's the code from the webform-form22.tpl.php if it helps :-)

<?php
include_once( 'sites/all/themes/zeropoint/sessions/form-formatting-helpers.php' );

$personal_info_header = array( '', 'Title', 'First name', 'Surname');

// If editing or viewing submissions, display the navigation at the top.
if (isset($form['submission_info']) || isset($form['navigation'])) {
print drupal_render($form['navigation']);
print drupal_render($form['submission_info']);
}

// Print out the main part of the form.
// dpm( $form['submitted'] );

// fieldset_labels_on_left_table( $form['submitted']['premium'], false, -50 );
// fieldset_labels_on_left_table( $form['submitted']['contact_info'], true, -10 );
fieldset_subfieldsets_to_table( $form['submitted']['contact_info'], $personal_info_header );
// fieldset_subfieldsets_to_table( $form['submitted']['children'], $personal_info_header );
// fieldset_labels_on_left_table( $form['submitted']['confirmation'], false, 50 );

// Always print out the entire $form. This renders the remaining pieces of the
// form that haven't yet been rendered above.
print drupal_render($form);

// Print out the navigation again at the bottom.
if (isset($form['submission_info']) || isset($form['navigation'])) {
unset($form['navigation']['#printed']);
print drupal_render($form['navigation']);
}

drupal_add_js (drupal_get_path('theme', 'zeropoint') .'/sessions/sessions.js', 'theme' );

Comments

codare’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.