is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Last modified 10 years ago

#563 confirmed enhancement

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: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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 (4)

comment:1 Changed 14 years ago by laurentj

  • Description modified (diff)

comment:2 Changed 14 years ago by laurentj

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

comment:3 Changed 14 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.

comment:4 Changed 10 years ago by laurentj

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