Thanks Michiel,

Sorry for my late reply but was away for a vacation. I am trying to create a 
node which fields are populated by poplists.
The values of these poplists have dependencies with eachother. So when choosing 
values for the node fields, I have to refresh the page (submit) to refresh the 
poplist values. 
When doing this I loose my field values. Useinput is only possible with 
createnode. As I am only listing the fields again with fieldlist, useinput can 
not be used.....or can it?

Kind regards,

Humphrey

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Mihxil'
Verzonden: vrijdag 30 juni 2006 9:30
Aan: Discussion list for developers
Onderwerp: Re: [Developers] useinput in forms

2006/6/29, Ferdinandus, Humphrey <[EMAIL PROTECTED]>:
 > I am struggeling with the following: I have a form with input fields
> depending on eachother. When changing one the others possible values should
> change. I do this by submitting the form.
>
> Part of the form is created using the fieldlist en fieldinfo tags (taken
> from the my editors). I like to know how I can show the values entered in
> these input fields when submitting the form. NOTE: a createnode is not
> issued.

I'm not entirely sure what you are trying to do or why you are trying
it to do it like this. fieldinfo-tags (with type 'input', 'useinput')
are basicly meant to be used to edit mmbase fields, or create mmbase
nodes. So trying to use them for something else could prove to be
difficult.

Normally the input-boxes contain either the just posted value, or if
not available, the current value of the field in the node, or if no
node created yet, the default value of a new node. In 1.8 mm:form tag
can be used to create a node in an mmbase transanction which can e.g.
only committed if all field-values are valid (using mm:valid).

You can also read out the post yourself (e.g. with <mm:import), though
I don't recommend it (I feel that it is only garanteed that
mm:fieldinfo can understand it's own posts..), which I know that
people 've done. It's a bit ugly, but it would work.

It would perhaps also be a possibility to use javascript, by which you
also easily read and set form entries.

Soon, mm:fieldinfo will be changed to support mmbase 'datatypes' more
generally. How to provide generic support for interdepended fields,
even without actual mmbase nodes, I don't know though.



Michiel

-- 
mihxil'  http://meeuw.org
nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21-7-2006
 
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to