[ 
http://jira.magnolia-cms.com/browse/MGNLFORM-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Will Scheidegger updated MGNLFORM-117:
--------------------------------------

    Attachment: formengine.patch

The attached patch adds a setter method for the FormState in the FormEngine 
object. This allows you to create your own FormState object and bind the 
default values from some other source when loading the form for the first time 
(i.e. by overwriting the handleTokenMissing() method).

> One should be able to pre-fill form fields
> ------------------------------------------
>
>                 Key: MGNLFORM-117
>                 URL: http://jira.magnolia-cms.com/browse/MGNLFORM-117
>             Project: Magnolia Form Module
>          Issue Type: Improvement
>    Affects Versions: 1.3.1
>            Reporter: Will Scheidegger
>            Assignee: Tobias Mattsson
>         Attachments: formengine.patch
>
>
> Since it apparently is "best practice" to use the form module to for all 
> kinds of user interaction one should be able to pre-fill form fields when 
> displaying the form. A perfect example to illustrate this need is the 
> stkPURUpdateForm paragraph which allows the user to update info about his/her 
> user account. The form however is displayed empty. One can create a custom 
> form engine and a form step state which sets the values in the fields, but 
> you cannot add this manually created form state to the form engine (no setter 
> method and private formState attribute). So either a setter method should be 
> provided or then we should have an additional "formValuesInit" method which 
> takes a hash with the values and does the rest.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to