Ticket #563 (new enhancement)

Opened 3 months ago

Last modified 3 months ago

jforms : support of a cancel button

Reported by: laurentj Assigned to:
Priority: low Milestone:
Component: jelix:forms Version: 1.0.3
Severity: minor Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description (Last modified by laurentj)

A special submit button could be used, to cancel a form : it submits the form but jForms::fill could check if this is the cancel button to know if it should get or not all values. jFormsBase could have a method, isCancelled to know if the user has cancelled or not and so we can doing things in the controller like doing a redirection.

The button cancel could be declared in <submit> element, with a <item value="cancel">.

Change History

04/27/08 14:27:21 changed by laurentj

  • description changed.

04/27/08 14:29:35 changed by laurentj

Changes should be made also in jforms.js to avoid to do validation on controls.

04/28/08 10:45:07 changed by bibo

At first glance, isn't it simpler for anyone to add a link beside submit button. the redirection is evident here and no need to submit, etc. ? the only drawback I see at the moment, is that using a link and not applying style to submit button, will make them display really differently. That is a pain but style can arrange this.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed