I have been making a very basic form with the formproc module, but i keep on getting an error when i want a textfield to be required. When i fill in something in the textbox, i still get an error that the field should be filled in after submitting, even though it is.

Below is the form creation code:

function timetable_form_def(&$node) {

	// Initialize form.
	$form = array('NODE'=>&$node);
	$form['course'] = array(	
		'type'     => 'text',
		'name'     => 'course',
		'help'     => 'Course',
		'required' => true,
	);
	$form['format'] = array(
		'name' => 'format',
		'html' => filter_form('format', $node->format),
	);

	return $form;
}

What could cause this? I don't think i did anything special, as this is a very basic form...

Comments

CarbonPig’s picture

I'm having a very similar problem. However, I am using 6.4 and the CCK module. It says that the text fields are required even though I fill them in.

Any ideas?

-The Carbon Pig

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Formproc is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.