I'm sure I'm doing something dumb again, when isn't that the case.
Here is my form dryml but the hidden field for the after submit isn't part
of the html and of course I always go back to the standard item page.
<extend tag="form" for="LocationMaterial">
<old-form merge >
<after-submit: go-back/>
<field-list: fields="material, abated, condition, potential, friable,
percent_damage, accessible, quantity, unit, notes, locmathists">
<material-view:>
<select-one-or-new-dialog>
<field-list: fields="name"/>
</select-one-or-new-dialog>
</material-view:>
<unit-view:>
<select-one-or-new-dialog/>
</unit-view:>
<locmathists-view:>
<input-many>
<field-list fields='project, date, field_tech'/>
</input-many>
</locmathists-view:>
</field-list:>
<actions:>
<submit label="#{ht 'location_material.actions.save', :default=>['Save']}"
param/>
<or-cancel:location param="cancel"/>
</actions:>
</old-form>
</extend>
Bob
On Sunday, March 4, 2012 10:30:24 AM UTC-5, Bryan Larsen wrote:
>
> http://cookbook-1.3.hobocentral.net/api_tag_defs/after-submit for the
> submit button.
>
> For the cancel button, it can be parameterized just like any other
> link. As scorpio suggested, you could use the referrer as the href
> for it.
>
> Bryan
>
>
> On Sat, Mar 3, 2012 at 2:23 PM, Bob Sleys <[email protected]> wrote:
> > Is there a simple way to make a form return to the referring page on a
> save
> > or cancel? I have links to edit an item from 2 different locations in my
> > app and I'd like the user returned to the page that they used to get to
> edit
> > the item instead of a fixed page.
> >
> > Bob
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hobo Users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/hobousers/-/tXLi-dYNrNgJ.
> > 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.
>
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/gepIH_v176gJ.
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.