Re: [ CForms ] lookupWidget(path)

2004-08-09 Thread JD Daniels
try: var form = new Form(cocoon.parameters["form-definition"]); var model = form.getWidget(); var list = model.list; Timur Izhbulatov wrote: Hi all! When I use v1 flow and the following code, I get the right value of the list: var form = new Form(cocoon.parameters["form-definition"]); var li

[ CForms ] lookupWidget(path)

2004-08-09 Thread Timur Izhbulatov
Hi all! When I use v1 flow and the following code, I get the right value of the list: var form = new Form(cocoon.parameters["form-definition"]); var list = form.getModel().list; But when I try using v2 and lookupWndget("list") list is undefined. Namely, I do the following thing: var