Ticket #563 (confirmed enhancement)

Opened 5 years ago

Last modified 17 months ago

jforms : support of a cancel button

Reported by: laurentj Owned by:
Priority: low Milestone:
Component: jelix:forms Version: 1.0.3
Severity: minor Keywords:
Cc: Php version:
Hosting Provider: Blocked By:
Documentation needed: no Blocking:

Description (last modified by laurentj) (diff)

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

Changed 5 years ago by laurentj

  • description modified (diff)

Changed 5 years ago by laurentj

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

Changed 5 years ago 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.

Changed 17 months ago by laurentj

  • status changed from new to confirmed
Note: See TracTickets for help on using tickets.