form-processing-procs.tcl

  • last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
inverted logic and the wrong element key from last commit

use template::element::exists for checking if an element exists for validation blocks - faster and works in the event you added an element directly via the form api

1. Allow use of variables in form element names, so you can more easily build

dynamic forms.

2. Relax the rules slightly so you can initialize a form without providing

a form block.

Allow one to initiate an ad_form with specifying the "form" block, useful

for building forms incrementally.

Added doc to ad_form about its two modes: declare and execute

merge of all changes on oacs-5-0 branch between tag openacs-5-0-0-final and jcd-merge-pre503 (except those in lars-blogger).

  1. … 293 more files in changeset.
Added additional information about the likely cause of an error when selecting values: the query returned no rows

Fix for bug introduced by Don's 1.45 on_validation_error patch: Now we would enter the on/after_submit-new/edit_data blocks, even if the form was refreshing.

Added an "-on_validation_error" block that can be used to set the page

title etc after a validation error (request blocks aren't executed in this

case, and using ad_form_new_p explicitly has its own problems).

Added links to available datatypes and widgets to ad_form documentation

Clarified error message

added a clue to the 'no select_query or select_query_name clause

exists error' message

Fixed bug: global ad_to_sql/af_from_sql/af_to_html weren't global'd, causing ad_form to forget from call to call (e.g. when you -extend a form)

merge of changes on oacs-5-0 branch to oacs-5-0-0b4 tag

  1. … 598 more files in changeset.
added link to new docs

ad_form doc fix patch 94 Benjamin Bytheway

bugfix #1096: let displayed text in form begin with -

  1. … 2 more files in changeset.
Fixing call to ad_sign by adding -- before parameters to protect against

values beginnign with -

- documented difference between -edit_request and -select_query. Fix bug #746

  1. … 1 more file in changeset.
Added support for spell-checking to the form bulider and ad_form.

  1. … 6 more files in changeset.
- Fix bug #846, patch #295

Fixed bug #460: report -code error instead of return -code error.

Support display_buttons on ad_form. Not sure we should do this since display_buttonss is deprecated, but I've already written the code, so ...

Merged 4.6.4d1 (unreleased) to HEAD. This marks the end of the life of the oacs-4-6 branch.

  1. … 816 more files in changeset.
Pass on edit_buttons switch to the form create statement

Allow using 'break' in on_submit, edit_data or new_data block. Useful for doing validation in the on_submit block. See documentation.

- Guess I forgot a couple switches. Added to documentation.

- Also added an explanation for the -validate block.

- Copied a snippet about -extend from HEAD.

- Updated ad_form's documentation with all the switches it currently

supports.

- Added clarifications about the -on_request and -on_submit blocks.

- Added note telling the user s/he must get familiar with the ATS to be

able to the ad_form effectively.

Added support for has_submit switch to forms

Made ad_form not need to have an explicit list of form element switches available by simply removing the entire switch statement, since it always did the same, anyway