Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    what's wrong

    I need to reference the field nick of the form boundForm. I'm using:
    boundForm.nick.value()
    what's wrong.
    here is the complete form:

    isc.DynamicForm.create({
    ID: "boundForm",
    fields: [
    {name: "nick", title: "userid", type: "text", required: true, length: 20},
    {name: "validateBtn", title: "button", type: "button", click: "RPCManager.sendRequest({ data: '' , callback: 'isLogin(data)', actionURL: '/data/checkLogin.php?user=" + boundForm.nick.value() + "'});RPCManager.sendQueue()"}
    ]
    })
    thanks,

    #2
    Use boundForm.getItem("nick").getValue() or boundForm.getValue("nick") to get the value of a field.

    Basic use of DynamicForms is covered in our documentation (DynamicForms and FormItems), and demonstrated in our examples. Try exploring these to get an idea of how DynamicForms work (and how they differ from raw HTML forms).
    It looks like you're trying to do essentially a raw HTML-type form submission. This is also possible using dynamicForms via the canSubmit attribute.
    Last edited by Isomorphic; 21 Aug 2007, 09:31.

    Comment

    Working...
    X