The Toolkit for Online Communities
17921 Community Members, 0 members online, 2307 visitors today
Log In Register
OpenACS Home : ACS API Browser : ad_form_new_p

ad_form_new_p (public)

 ad_form_new_p -key key
Defined in packages/acs-tcl/tcl/form-processing-procs.tcl

This is for pages built with ad_form that handle edit and add requests in one file. It returns 1 if the current form being built for the entry of new data, 0 if for the editing of existing data.

It does not make sense to use this in pages that don't use ad_form.

-key (required)
the name of the key element. In the above example: ad_form_new_p -key item_id
[ show source ]
Show another procedure: