Snippets

Create an account or login to be able to add, comment and rate snippets.

Navigation

turn on form repopulation

add this to your validation file for the action.

eg: indexSuccess.php would have have a file called index.yml in the validate directory for that module if you configured validation.

fillin:
  activate: on   # activate the form repopulation
  param:
    name: test   # name of the form
by Russ Cann on 2006-05-23, tagged forms  repopulation  symfony  validation  yml 

Comments on this snippet

gravatar icon
#1 Fabien Potencier on 2006-05-24 at 07:30

The name of the form is an optional parameter. If you just write:

fill:
  activate: on

it will auto-populate the first form of the page.

gravatar icon
#2 Russ Cann on 2006-05-24 at 08:14

handy to know fabien, thanks.

You need to create an account or log in to post a comment or rate this snippet.