Page 1 of 1

Cancel Button?

PostPosted: Mon Aug 24, 2009 4:02 pm
by JonP
Is there an easy way to add a cancel button to the secondary forms, such as update or add new?

Other tools I've used such as ATK automatically add one and from an end user's perspective I find that desirable.

I've tried the docs and searched the forum but couldn't find anything obvious.


Jon P.

PostPosted: Tue Aug 25, 2009 1:41 pm
by shannah
This would be a good feature. You could add such a button quite easily using blocks and slots. There should be an appropriate one just before the save button that you can fill.

Load the page with debug=1 in the conf.ini file to show a readout of where the available slots are.

-Steve

PostPosted: Tue Aug 25, 2009 3:01 pm
by JonP
shannah wrote:This would be a good feature. You could add such a button quite easily using blocks and slots. There should be an appropriate one just before the save button that you can fill.

Load the page with debug=1 in the conf.ini file to show a readout of where the available slots are.

-Steve


Hmmm - haven't come across those yet - I'll check it out - thanks.

I guess the simple action to take is to trigger browser back - or is there something in Xataface I should be invoking to "clean up"?


Jon P.

PostPosted: Tue Aug 25, 2009 3:05 pm
by shannah
Browser back would be sufficient.
e.g.
Code: Select all
<input type="button" name="back" value="Back"
onClick="javascript:history.back();"

PostPosted: Tue Aug 25, 2009 3:16 pm
by JonP
Thanks Steve - I'll give it a shot.

Jon P.