<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Lee,<br>
<br>
Well, I think this is a slightly different scenario, so I might need to
do what you're saying in a different way. It's a multi-page form that
starts as a a few search fields, and then adds on the results, some of
which is editable.<br>
<br>
So, the flow is like this:<br>
<br>
hook_form() {<br>
turn off #redirect<br>
build sort form fields<br>
does form_values have id?<br>
Y <br>
update form submit was clicked?<br>
Y<br>
update tables<br>
N<br>
query based on contents of sort fields<br>
loop through result set and create additional form fields<br>
create table containing mixture of text and form fields<br>
add submit field<br>
}<br>
Jeff<br>
<br>
On 09/03/2010 05:14 AM, Lee Rowlands wrote:
<blockquote cite="mid:1283505253.12612.73.camel@rowlands1.dnsalias.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="GENERATOR" content="GtkHTML/3.28.0">
Jeff<br>
Are you calling drupal_render in the theme function or the form builder?<br>
You need to call it in the theme function.<br>
See theme_user_admin_account and user_admin_account, the form is built
and returned in user_admin_account (as a flat form) and returned as an
array, which is then rendered in theme_user_admin_account as a table.<br>
<br>
Lee<br>
On Fri, 2010-09-03 at 00:49 -0400, Jeff Greenberg wrote:<br>
<blockquote type="CITE"> So there seems to be two problems with the
drupal_rendered form field. One is that in looking at the page source,
the option value in each of these select fields that matches the
#default_value are not marked as selected.<br>
<br>
The other problem is that the data is not passed back on any of these
fields, and the page source shows each of them having a class of
form_field like the non drupal_render fields, but id="" and name="" </blockquote>
<blockquote type="CITE"> <br>
<br>
</blockquote>
<br>
</blockquote>
</body>
</html>