This is mine form definition file:
   
 
 
 <fd:repeater id="name" initial-size="{$my_var}">
  <fd:label>repeater</fd:label>
   <fd:widgets>
   <fd:field id="nazw1" >
     <fd:label>name</fd:label>
     <fd:datatype base="string"/>
   </fd:field>
   <fd:field id="nazw2" required="true">
     <fd:label>Nazwa:</fd:label>
     <fd:datatype base="string"/>
   </fd:field>
  </fd:widgets>
 </fd:repeater>
 
    {....}
</fd:form>
And now I want to send a variable from _javascript_:
 var form = new Form("forms/my_form_definition_file.xml",{"my_var":my_var}); <--this doesn't work
 form.showForm("forms/t_nowyTyp.xml",{"my_var":my_var}); <-- when I send my_var to form template it works
 
 

Bartosz Zgodziński

Reply via email to