Thanks Massimo, for option in form[0][1][1][0]: if option['_value']==str(myparameter): option ['_selected']='selected'
did it. > You should never need to get to this low level of programming anyway. > This may mess up automatic form handling. > > Massimo form is the form of a new record insert.. There is an input text on an other form. I give it a value that it searches in the same table articles if there is some record in wich a field is like that of the input text. If it finds it, it puts in my form of insert the corresponding values. For example: input text=dog --> it finds in the table a record in wich exists "dog" --> it puts in my form: "dog", "animal" --> i complete my form with: "brown" "color", "pitbull" --> insert my record I understand that it is a little bit barbarian what i do... but what i needed it was not an other table in which to put only the characteristics of dogs, but some kind of help in compiling forms. Paolo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---