Ah I see, thanks again Bryan!


On Jan 19, 9:17 am, Bryan Larsen <[email protected]> wrote:
> <create-button> is basically just a shortcut for a form.
>
> Try something like this:
>
> <form with="&Customer.new">
>    <field-list: fields="name, email">
>      <name-label>New Customer Name:</name-label>
>      <email-label>New Customer Email:</email-label>
>    </field-list:>
>    <submit: label="New Customer"/>
> </form>
>
>
>
> Brian Corbin wrote:
> > Can I have regular input boxes on a form and use their values in the
> > fields parameter for a create-button?  Something like this:
>
> > <form>
> > ...
> >   New Customer Name: <input type="text" name="customerName" />
> >   New Customer Email: <input type="text" name="customerEmail" />
> >   <create-button label="New Customer" model="User" update="quick-
> > orders-part" fields="{name => customerName, email => customerEmail}" /
> > ...
> > </form>
>
> > That of course gives this error: unknown attribute: {name =>
> > customerName, email => customerEmail}
>
> > I'd really appreciate some help with the proper syntax or an
> > alternative approach.  Thanks!
>
> > Brian
-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to